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