maybeOf<T> static method

DataScopeState<T>? maybeOf<T>(
  1. BuildContext context
)

Maybe provide the nearest instance.

Implementation

static DataScopeState<T>? maybeOf<T>(final BuildContext context) =>
    context.findAncestorStateOfType<DataScopeState<T>>();