maybeOf<T> static method
Maybe provide the nearest instance.
Implementation
static DataScopeState<T>? maybeOf<T>(final BuildContext context) =>
context.findAncestorStateOfType<DataScopeState<T>>();
Maybe provide the nearest instance.
static DataScopeState<T>? maybeOf<T>(final BuildContext context) =>
context.findAncestorStateOfType<DataScopeState<T>>();