Skip to content

Glossary: Flutter

GlobalKey

Also written: GlobalKey<FormState>, currentState

A key that lets your code reach a widget's state. Giving a `GlobalKey<FormState>` to a `Form` lets you call `_formKey.currentState!.validate()`.

Where the book teaches it

Related terms

Formkeynull check error