of<T> static method

Implementation

static NavigationSidebarController<T>? of<T>(BuildContext context) {
  final scope = context.dependOnInheritedWidgetOfExactType<NavigationSidebarScope<T>>();
  return scope?.controller;
}