blob: 3609d2752660b7f67aee8d5170720915b4ca9803 [file] [log] [blame] [view]
# FocusState class
*[<Null safety>](https://dart.dev/null-safety)*
## Properties
##### [hashCode](../package-fuchsia_scenic_flutter_fuchsia_view/FocusState/hashCode.md) &#8594; int
The hash code for this object.
_read-only, inherited_
##### [runtimeType](../package-fuchsia_scenic_flutter_fuchsia_view/FocusState/runtimeType.md) &#8594; Type
A representation of the runtime type of the object.
_read-only, inherited_
## Methods
##### [isFocused](../package-fuchsia_scenic_flutter_fuchsia_view/FocusState/isFocused.md)() Future&lt;bool>
Gets the current focus state of the root viewRef.
##### [noSuchMethod](../package-fuchsia_scenic_flutter_fuchsia_view/FocusState/noSuchMethod.md)(Invocation invocation) dynamic
Invoked when a non-existent method or property is accessed.
_inherited_
##### [requestFocus](../package-fuchsia_scenic_flutter_fuchsia_view/FocusState/requestFocus.md)(int viewRef) Future&lt;void>
Requests that focus be transferred to the remote Scene represented by
this connection.
##### [requestFocusById](../package-fuchsia_scenic_flutter_fuchsia_view/FocusState/requestFocusById.md)(int viewId) Future&lt;void>
Requests that focus be transferred to the remote Scene by ViewId
This method is indended for use by FuchsiaViewConnection only.
##### [stream](../package-fuchsia_scenic_flutter_fuchsia_view/FocusState/stream.md)() Stream&lt;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](../package-fuchsia_scenic_flutter_fuchsia_view/FocusState/toString.md)() String
A string representation of this object.
_inherited_
## Operators
##### [operator ==](../package-fuchsia_scenic_flutter_fuchsia_view/FocusState/operator_equals.md)(Object other) bool
The equality operator.
_inherited_
## Static Properties
##### [instance](../package-fuchsia_scenic_flutter_fuchsia_view/FocusState/instance.md) &#8594; [FocusState](../package-fuchsia_scenic_flutter_fuchsia_view/FocusState-class.md)
_final_