maybeOf static method

The nearest enclosing shell, or null if there is none.

Implementation

static GlassNavigationShellState? maybeOf(BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<_GlassNavigationShellScope>()
      ?.state;
}