form property
FormState?
get
form
Returns The state from the closest instance of this class that encloses the given context.
It is used for validating forms
Implementation
FormState? get form => Form.of(this);