SubFocusScopeState mixin

Mixin providing focus scope state management capabilities.

Defines the interface for interacting with a SubFocusScope, including methods for focus management, child attachment/detachment, and action routing.

This mixin is implemented by internal scope state classes and provides the public API for focus operations within a scope.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

attach(SubFocusState child) bool
Attaches a child focus state to this scope.
detach(SubFocusState child) → void
Detaches a child focus state from this scope.
invokeActionOnFocused(Intent intent) Object?
Invokes an action on the currently focused child widget.
nextFocus([TraversalDirection direction = TraversalDirection.down]) bool
Moves focus to the next child in the specified direction.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestFocus(SubFocusState child) bool
Requests focus for a specific child.
toString() String
A string representation of this object.
inherited
unfocus(SubFocusState child) bool
Removes focus from a specific child.

Operators

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

Static Methods

maybeOf(BuildContext context) SubFocusScopeState?
Retrieves the nearest SubFocusScopeState from the widget tree.