of<T> static method

DataScopeState<T> of<T>(
  1. BuildContext context
)

Returns the nearest instance.

Implementation

static DataScopeState<T> of<T>(final BuildContext context) =>
    DataScope.maybeOf(context)!;