form method
Widget
form({
- required GlobalKey<
FormState> formKey, - Widget? child,
- AutovalidateMode? autoValidateMode,
- VoidCallback? onChanged,
- WillPopCallback? onWillPop,
Wraps descendant widgets with a Form widget.
Implementation
Widget form({
required GlobalKey<FormState> formKey,
Widget? child,
AutovalidateMode? autoValidateMode,
VoidCallback? onChanged,
WillPopCallback? onWillPop,
}) {
return Form(
key: formKey,
autovalidateMode: autoValidateMode,
onChanged: onChanged,
onWillPop: onWillPop,
child: this,
);
}