accepts method Null safety
Whether the triggering
event and the keyboard
state at the time of the
event meet required conditions, providing that the event is a triggering
For example, for
Ctrl-A, it has to check if the event is a
KeyDownEvent, if either side of the Ctrl key is pressed, and none of
the Shift keys, Alt keys, or Meta keys are pressed; it doesn't have to
check if KeyA is pressed, since it's already guaranteed.
This method must not cause any side effects for the
this is only used to query whether HardwareKeyboard.logicalKeysPressed
contains a key.
- LogicalKeyboardKey.collapseSynonyms, which helps deciding whether a modifier key is pressed when the side variation is not important.
bool accepts(RawKeyEvent event, RawKeyboard state);