onKeyEvent method

  1. @override
  2. @mustCallSuper
bool onKeyEvent(
  1. KeyEvent event,
  2. Set<LogicalKeyboardKey> keysPressed
)

Implementation

@override
@mustCallSuper
bool onKeyEvent(KeyEvent event, Set<LogicalKeyboardKey> keysPressed) {
  var handled = false;

  for (final fn in _keyEventFns) {
    handled |= fn(event, keysPressed) ?? true;
  }

  return handled;
}