RawKeyEvent class
Base class for raw key events.
Raw key events pass through as much information as possible from the underlying platform's key events, which makes they provide a high level of fidelity but a low level of portability.
See also:
- RawKeyDownEvent, a specialization for events representing the user pressing a key.
- RawKeyUpEvent, a specialization for events representing the user releasing a key.
- RawKeyboard, which uses this interface to expose key data.
- RawKeyboardListener, a widget that listens for raw key events.
- Implementers
- Annotations
- @immutable
Constructors
- RawKeyEvent({@required RawKeyEventData data })
-
Initializes fields for subclasses.
const
-
RawKeyEvent.fromMessage(Map<
String, dynamic> message) -
Creates a concrete RawKeyEvent class from a message in the form received
on the SystemChannels.keyEvent channel.
factory
Properties
- data → RawKeyEventData
-
Platform-specific information about the key event.
final
- 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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited