RawKeyboardListener constructor

  1. @Deprecated('Use KeyboardListener instead. ' 'This feature was deprecated after v3.18.0-2.0.pre.')
const RawKeyboardListener({
  1. Key? key,
  2. required FocusNode focusNode,
  3. bool autofocus = false,
  4. bool includeSemantics = true,
  5. ValueChanged<RawKeyEvent>? onKey,
  6. required Widget child,
})

Creates a widget that receives raw keyboard events.

For text entry, consider using a EditableText, which integrates with on-screen keyboards and input method editors (IMEs).

Implementation

@Deprecated(
  'Use KeyboardListener instead. '
  'This feature was deprecated after v3.18.0-2.0.pre.',
)
const RawKeyboardListener({
  super.key,
  required this.focusNode,
  this.autofocus = false,
  this.includeSemantics = true,
  this.onKey,
  required this.child,
});