RawKeyEventHandler typedef

  1. @Deprecated('Use KeyEventCallback instead. ' 'This feature was deprecated after v3.18.0-2.0.pre.')
RawKeyEventHandler = bool Function(RawKeyEvent event)

A callback type used by RawKeyboard.keyEventHandler to send key events to a handler that can determine if the key has been handled or not.

This typedef has been deprecated and will be removed. Use KeyEventCallback instead.

The handler should return true if the key has been handled, and false if the key was not handled. It must not return null.

Implementation

@Deprecated(
  'Use KeyEventCallback instead. '
  'This feature was deprecated after v3.18.0-2.0.pre.',
)
typedef RawKeyEventHandler = bool Function(RawKeyEvent event);