key property

Use this key on the Form widget to get access to save,validate, and reset functions!

{@tool snippet}

class _ExampleState extends State<Example> {

  Form(
  key: _formController.key,
  child:
  ... )

{@end-tool}

Implementation

GlobalKey<FormState> get key => _formKey;