ViewFocusEvent class final
An event for the engine to communicate view focus changes to the app.
This value will be typically passed to the PlatformDispatcher.onViewFocusChange callback.
Constructors
- ViewFocusEvent({required int viewId, required ViewFocusState state, required ViewFocusDirection direction})
-
Creates a
ViewFocusChange
.const
Properties
- direction → ViewFocusDirection
-
The direction focus changed to.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → ViewFocusState
-
The state focus changed to.
final
- viewId → int
-
The ID of the FlutterView that experienced a focus change.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited