Form constructor Null safety
- {Key? key,
- required Widget child,
- WillPopCallback? onWillPop,
- VoidCallback? onChanged,
- AutovalidateMode? autovalidateMode}
Creates a container for form fields.
The child argument must not be null.
Implementation
const Form({
super.key,
required this.child,
this.onWillPop,
this.onChanged,
AutovalidateMode? autovalidateMode,
}) : assert(child != null),
autovalidateMode = autovalidateMode ?? AutovalidateMode.disabled;