FocusManager class

FocusManager type.

Constructors

FocusManager(InputManager inputManager)
Creates a FocusManager.

Properties

hashCode int
The hash code for this object.
no setterinherited
inputManager InputManager
The inputManager value.
final
primaryFocus FocusNode?
The primaryFocus value.
no setter
rootScope FocusScopeNode
The rootScope value.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Release input subscriptions owned by this focus manager.
focusNext() bool
Move focus to the next focusable node in widget-tree order.
focusPrevious() bool
Move focus to the previous focusable node in widget-tree order. Mirror of focusNext; wraps from the first node to the last.
nodeForElement(Element element) FocusNode?
Runs nodeForElement.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
traversalOrder() List<FocusNode>
Returns the cached tree-order traversal list, rebuilding it if dirty.

Operators

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

Static Methods

of(BuildContext context) FocusManager
Runs of.