matches method
Returns true if this shortcut matches the given KeyEvent.
Implementation
bool matches(KeyEvent event) {
if (type != null && event.type != type) return false;
if (key != null && event.key.toLowerCase() != key!.toLowerCase()) {
return false;
}
if (event.modifiers.length != modifiers.length) return false;
return event.modifiers.containsAll(modifiers);
}