maybeOf static method

DataFormState? maybeOf(
  1. BuildContext context
)

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;
}