of static method

The controller of the nearest scope.

Implementation

static CalseeThemeController of(BuildContext context) {
  final scope = context
      .dependOnInheritedWidgetOfExactType<_CalseeInherited>();
  assert(scope != null, 'No CalseeScope above this widget.');
  return scope!.notifier!;
}