KeyEventState class

Represents the state of the keyboard.

Annotations
  • @immutable

Constructors

KeyEventState(int value)
Constructs a new instance of KeyEventState.
const
KeyEventState.capsLock()
Creates a new instance of KeyEventState with caps lock enabled.
factory
KeyEventState.keypad()
Creates a new instance of KeyEventState with keypad enabled.
factory
KeyEventState.none()
Creates a new instance of KeyEventState with none of the states enabled.
factory
KeyEventState.numLock()
Creates a new instance of KeyEventState with num lock enabled.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isCapsLock bool
Returns true if the caps is in the key event
no setter
isKeypad bool
Returns true if is a key from the keypad
no setter
isNumLock bool
Returns true if the num lock is in the key event.
no setter
props List<Object>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
value int
Returns the value of the state.
no setter

Methods

add(KeyEventState state) KeyEventState
Add a state to the current set of states.
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