FormControllerCommandExtensions extension
In flutter, it can be challenging to bind submit buttons to forms, when the submit button lives outside the form's
tree. These extensions make it easy to bind a form's submission to a Command
that's registered further up the tree.
Methods
-
bindCommand<
T> (BuildContext context, {FutureOr< T> submit()?, bool? skipIfUnmodified = false}) → void -
Available on FormController, provided by the FormControllerCommandExtensions extension
Binds the command - raises an exception if no Command is found -
tryBindCommand<
T> (BuildContext context, {FutureOr< T> submit()?, bool? skipIfUnmodified}) → bool -
Available on FormController, provided by the FormControllerCommandExtensions extension
-
unbindCommand<
T> (CallBridge< T> command) → void -
Available on FormController, provided by the FormControllerCommandExtensions extension