of method

T? of(
  1. BuildContext context
)

Implementation

T? of(BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<StateProvider<T>>()
      ?.notifier;
}