autovalidate:

true

builder:

FormFieldState

state

return

Container

();

},

);

Code after migration:

class

MyWidget

extends

StatelessWidget

@override

Widget

build

BuildContext

context

return

FormField

autovalidateMode:

AutovalidateMode

always

builder:

FormFieldState

state

return

Container

();

},

);

Timeline