tryHandle method

KeyActionResult? tryHandle(
  1. KeyEvent event
)

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;
}