SubFocusState mixin
Mixin providing focus state and control capabilities for focusable widgets.
Defines the interface for interacting with a SubFocus widget, including methods for focus management, visibility control, and action handling.
This mixin is implemented by internal focus state classes and provides the public API for focus operations on individual focusable elements.
Properties
- focusCount → int
-
The number of times this element has received focus.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFocused → bool
-
Whether this element currently has focus.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
ensureVisible(
{ScrollPositionAlignmentPolicy alignmentPolicy = ScrollPositionAlignmentPolicy.explicit}) → void - Scrolls the widget into view within its scrollable ancestor.
-
findRenderObject(
) → RenderBox? - Retrieves the render box for this focusable element.
-
invokeAction(
Intent intent) → Object? - Invokes an action/intent on this focused element.
-
markFocused(
bool focused) → void - Marks this element as focused or unfocused (internal method).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestFocus(
) → bool - Requests focus for this element.
-
toString(
) → String -
A string representation of this object.
inherited
-
unfocus(
) → bool - Removes focus from this element.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited