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.of(context).navigationMode to determine the navigation mode in effect for the given context. Use a MediaQuery widget to set the navigation mode for its descendant widgets.

Constants

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.

const NavigationMode(1)
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.

const NavigationMode(0)
values → const List<NavigationMode>

A constant List of the values in this enum, in order of their declaration.

const List<NavigationMode>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited