onKey method

InputSubscription onKey(
  1. KeyEventHandler handler, {
  2. int priority = InputPriority.widget,
})

Subscribe to key events at the given priority.

Implementation

InputSubscription onKey(
  KeyEventHandler handler, {
  int priority = InputPriority.widget,
}) => _dispatcher.onKey(handler, priority: priority);