navigationMode property
NavigationMode
get
navigationMode
Returns the navigation mode for the nearest MediaQuery ancestor or throws an exception if none exists.
Example:
NavigationMode navMode = context.navigationMode;
Implementation
NavigationMode get navigationMode => MediaQuery.navigationModeOf(this);