| |
| |
| |
| # FocusState class |
| |
| |
| |
| |
| |
| |
| *[<Null safety>](https://dart.dev/null-safety)* |
| |
| |
| |
| |
| |
| |
| |
| |
| ## Properties |
| |
| ##### [hashCode](../package-fuchsia_scenic_flutter_fuchsia_view/FocusState/hashCode.md) → int |
| |
| |
| |
| The hash code for this object. |
| _read-only, inherited_ |
| |
| |
| |
| ##### [runtimeType](../package-fuchsia_scenic_flutter_fuchsia_view/FocusState/runtimeType.md) → 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<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<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<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<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) → [FocusState](../package-fuchsia_scenic_flutter_fuchsia_view/FocusState-class.md) |
| |
| |
| |
| |
| _final_ |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |