tryHandle method
Attempts to handle the event. Returns the result if matched, null otherwise.
Implementation
KeyActionResult? tryHandle(KeyEvent event) {
if (matches(event)) {
return action(event);
}
return null;
}
Attempts to handle the event. Returns the result if matched, null otherwise.
KeyActionResult? tryHandle(KeyEvent event) {
if (matches(event)) {
return action(event);
}
return null;
}