TraversalDirection enum Null safety

A direction along either the horizontal or vertical axes.

This is used by the DirectionalFocusTraversalPolicyMixin, and FocusNode.focusInDirection to indicate which direction to look in for the next focus.

Inheritance

Constructors

TraversalDirection()
const

Values

up → const TraversalDirection

Indicates a direction above the currently focused widget.

TraversalDirection()

Indicates a direction to the right of the currently focused widget.

This direction is unaffected by the Directionality of the current context.

TraversalDirection()
down → const TraversalDirection

Indicates a direction below the currently focused widget.

TraversalDirection()
left → const TraversalDirection

Indicates a direction to the left of the currently focused widget.

This direction is unaffected by the Directionality of the current context.

TraversalDirection()

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<TraversalDirection>
A constant List of the values in this enum, in order of their declaration.
[up, right, down, left]