KeyMessageHandler typedef

  1. @Deprecated('No longer supported. Once KeyMessage is removed, will no longer be needed. ' 'This feature was deprecated after v3.18.0-2.0.pre.')
KeyMessageHandler = bool Function(KeyMessage message)

The signature for KeyEventManager.keyMessageHandler.

A KeyMessageHandler processes a KeyMessage and returns whether the message is considered handled. Handled messages should not be propagated to other native components.

This message handler signature is deprecated, and will be removed. There is no direct substitute planned, since this handler type will no longer be necessary once RawKeyEvent and associated APIs are removed.

Implementation

@Deprecated(
  'No longer supported. Once KeyMessage is removed, will no longer be needed. '
  'This feature was deprecated after v3.18.0-2.0.pre.',
)
typedef KeyMessageHandler = bool Function(KeyMessage message);