dispatchKey method

bool dispatchKey(
  1. KeyEvent event
)

Implementation

bool dispatchKey(KeyEvent event) {
  final scope = _active;
  final cur = scope.current;
  if (cur == null) return false;
  final handler = scope.handlers[cur];
  if (handler == null) return false;
  return handler(event);
}