DirectionalFocusIntent class

An Intent that represents moving to the next focusable node in the given direction.

This is the Intent bound by default to the LogicalKeyboardKey.arrowUp, LogicalKeyboardKey.arrowDown, LogicalKeyboardKey.arrowLeft, and LogicalKeyboardKey.arrowRight keys in the WidgetsApp, with the appropriate associated directions.

See FocusTraversalPolicy for more information about focus traversal.

Inheritance

Constructors

DirectionalFocusIntent(TraversalDirection direction, {bool ignoreTextFields: true})
Creates a DirectionalFocusIntent intending to move the focus in the given direction.
const

Properties

direction TraversalDirection
The direction in which to look for the next focusable node when the associated DirectionalFocusAction is invoked.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
ignoreTextFields bool
If true, then directional focus actions that occur within a text field will not happen when the focus node which received the key is a text field. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
@mustCallSuper, @protected, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toDiagnosticsNode({String name, DiagnosticsTreeStyle style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep. [...]
inherited
toString({DiagnosticLevel minLevel: DiagnosticLevel.info}) String
Returns a string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode. [...]
inherited

Operators

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