Questions
Q:

Flutter : ‘void Function(String)’ can’t be assigned to the parameter type ‘void Function(String?)?’

I’m trying to implement a dropdown menu in my flutter application, but in this part of the code have problems,

void Function(String)

error show this,

void Function(String)2

how do i fix this?