formState property

FormState? get formState

Returns the FormState of the context, if available. This property retrieves the state of a Form widget if present in the widget tree. It allows for interacting with form validation, saving, or resetting.

Implementation

FormState? get formState => Form.of(this);