NavigationMode enum Null safety

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.

Inheritance

Constructors

const

Values

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.

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

NavigationMode()

Properties

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

Methods

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

Operators

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

Constants

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