autovalidate was deprecated in v1.19.

The following classes all have the same change of API:

Form

FormField

DropdownButtonFormField

TextFormField

Migration guide

In-depth migration guide available

Code before migration:

const

Form

form

Form

autovalidate:

true

);

const

Form

form

Form

autovalidate:

false

);

final

autoMode

form

autovalidate

const

FormField

formField

FormField

autovalidate: