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.

on

Methods

bindCommand<T>(BuildContext context, {FutureOr<T> submit()?, bool? skipIfUnmodified = false}) → void
Binds the command - raises an exception if no Command is found
tryBindCommand<T>(BuildContext context, {FutureOr<T> submit()?, bool? skipIfUnmodified}) bool
unbindCommand<T>(CallBridge<T> command) → void