NavigationMode enum

Describes the navigation mode to be set by a MediaQuery widget.

The different modes indicate the type of navigation to be used in a widget subtree for those widgets sensitive to it.

Use MediaQuery.navigationModeOf(context) to determine the navigation mode in effect for the given context. Use a MediaQuery widget to set the navigation mode for its descendant widgets.





traditional → const NavigationMode

This indicates a traditional keyboard-and-mouse navigation modality.

This navigation mode is where the arrow keys can be used for secondary modification operations, like moving sliders or cursors, and disabled controls will lose focus and not be traversable.

directional → const NavigationMode

This indicates a directional-based navigation mode.

This navigation mode indicates that arrow keys should be reserved for navigation operations, and secondary modifications operations, like moving sliders or cursors, will use alternative bindings or be disabled.

Some behaviors are also affected by this mode. For instance, disabled controls will retain focus when disabled, and will be able to receive focus (although they remain disabled) when traversed.


hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.


values → const List<NavigationMode>
A constant List of the values in this enum, in order of their declaration.