Google is committed to advancing racial equity for Black communities. See how.

FocusState class

*[<Null safety>](https://dart.dev/null-safety)*

Properties

hashCode → int

The hash code for this object. ...
read-only, inherited

runtimeType → Type

A representation of the runtime type of the object.
read-only, inherited

Methods

isFocused() Future<bool>

Gets the current focus state of the root viewRef.

noSuchMethod(Invocation invocation) dynamic

Invoked when a non-existent method or property is accessed. ...
inherited

requestFocus(int viewRef) Future<void>

Requests that focus be transferred to the remote Scene represented by this connection.

stream() Stream<bool>

Listen for focus state events on the host viewRef. When listening, users will get the current focus state, followed by any future focus states. The returned stream instance should be cancelled whenever users are done listening to prevent memory leaks. ...

toString() String

A string representation of this object. ...
inherited

Operators

operator ==(Object other) bool

The equality operator. ...
inherited

Static Properties

instanceFocusState

final