FocusNode class abstract

A focus node that stores properties and optionally delegates input/lifecycle to callbacks.

Constructors

FocusNode()

Properties

canFocus bool
Whether this node can receive focus at all.
getter/setter pair
canTouch bool
Whether this node can receive focus via pointer/touch click.
getter/setter pair
canTraverse bool
Whether this node is included in tab traversal.
getter/setter pair
edgeBehavior EdgeBehavior
The edge behavior for this node when it acts as a scope.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isCollapsed bool
Whether this node is collapsed and does not participate in focus.
no getter
name String
Debug name for this node (does not need to be unique).
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tabIndex int
The tab index for traversal ordering.
getter/setter pair

Methods

clearWorldBounds() → void
Clear the world bounds for this node (marks bounds as unavailable). Nodes without bounds will not participate in directional navigation.
dispose() → void
Dispose of this focus node and release native resources.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setWorldBounds(double minX, double minY, double maxX, double maxY) → void
Set the world bounds for this node (for directional navigation). Bounds are in root artboard space and used for spatial navigation calculations. Call this during your update cycle when the node's position/size changes.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

make({KeyInputCallback? onKeyInput, TextInputCallback? onTextInput, FocusCallback? onFocused, FocusCallback? onBlurred}) FocusNode
Create a FocusNode with optional input/lifecycle callbacks.