maybeOf static method
Returns the DataFormState of the closest DataForm widget which encloses the given context, or null if none is found.
Implementation
static DataFormState? maybeOf(BuildContext context) {
final scope = _DataFormBase.maybeOf(context);
return scope?.formState;
}