of static method

_NotificationProviderState of(
  1. BuildContext context
)

Access the notification provider from context

Implementation

static _NotificationProviderState of(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<_InheritedNotificationProvider>()!.state;
}