FocusOnKeyCallback typedef
- @Deprecated('Use FocusOnKeyEventCallback instead. ' 'This feature was deprecated after v3.18.0-2.0.pre.')
Signature of a callback used by Focus.onKey and FocusScope.onKey to receive key events.
This kind of callback is deprecated and will be removed at a future date. Use FocusOnKeyEventCallback and associated APIs instead.
The node
is the node that received the event.
Returns a KeyEventResult that describes how, and whether, the key event was handled.
Implementation
@Deprecated(
'Use FocusOnKeyEventCallback instead. '
'This feature was deprecated after v3.18.0-2.0.pre.',
)
typedef FocusOnKeyCallback = KeyEventResult Function(FocusNode node, RawKeyEvent event);