of<T> static method

T of<T>(
  1. BuildContext context
)

Implementation

static T of<T>(BuildContext context) {
  final provider =
      context.dependOnInheritedWidgetOfExactType<PlusProviderInherited<T>>();
  return provider!.provider;
}