dropDownButtonFormField

DropdownButtonFormField

autovalidate:

true

);

const

DropdownButtonFormField

dropdownButtonFormField

DropdownButtonFormField

autovalidate:

false

);

Code after migration:

const

Form

form

Form

autovalidateMode:

AutovalidateMode

always

);

const

Form

form

Form

autovalidateMode:

AutovalidateMode

disabled

);

final

autoMode

form

autovalidateMode