of static method

Gets the current navigation view state.

This is the same as using a GlobalKey<NavigationViewState>

Implementation

static NavigationViewState of(BuildContext context) {
  return maybeOf(context)!;
}