FocusStreamManager class
A FocusManager with ChangeNotifierStream.
- Inheritance
-
- Object
- FocusManager
- FocusStreamManager
- Mixed in types
Constructors
Properties
-
controllers
→ Set<
MultiStreamController< FocusManager> > -
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- highlightMode → FocusHighlightMode
-
Indicates the current interaction mode for focus highlights.
no setterinherited
- highlightStrategy ↔ FocusHighlightStrategy
-
Sets the strategy by which highlightMode is determined.
getter/setter pairinherited
- primaryFocus → FocusNode?
-
The node that currently has the primary focus.
no setterinherited
- rootScope → FocusScopeNode
-
The root FocusScopeNode in the focus tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
→ Stream<
FocusManager> -
Stream of
T
extending ChangeNotifier, on a change notification.no setterinherited
Methods
-
addEarlyKeyEventHandler(
OnKeyEventCallback handler) → void -
Adds a key event handler to a set of handlers that are called before any
key event handlers in the focus tree are called.
inherited
-
addHighlightModeListener(
ValueChanged< FocusHighlightMode> listener) → void -
Register a closure to be called when the FocusManager notifies its listeners
that the value of highlightMode has changed.
inherited
-
addLateKeyEventHandler(
OnKeyEventCallback handler) → void -
Adds a key event handler to a set of handlers that are called if none of
the key event handlers in the focus tree handle the event.
inherited
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
applyFocusChangesIfNeeded(
) → void -
Applies any pending focus changes and notifies listeners that the focus
has changed.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
dispose(
) → Future< void> -
Do super.dispose and close all the streams.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
registerGlobalHandlers(
) → void -
Registers global input event handlers that are needed to manage focus.
inherited
-
removeEarlyKeyEventHandler(
OnKeyEventCallback handler) → void -
Removes a key handler added by calling addEarlyKeyEventHandler.
inherited
-
removeHighlightModeListener(
ValueChanged< FocusHighlightMode> listener) → void -
Remove a previously registered closure from the list of closures that the
FocusManager notifies.
inherited
-
removeLateKeyEventHandler(
OnKeyEventCallback handler) → void -
Removes a key handler added by calling addLateKeyEventHandler.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
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 -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the 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