RawKeyboardListenerModifier constructor

const RawKeyboardListenerModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. required FocusNode focusNode,
  5. bool autofocus = false,
  6. bool includeSemantics = true,
  7. ValueChanged<RawKeyEvent>? onKey,
})

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).

The focusNode and child arguments are required and must not be null.

The autofocus argument must not be null.

Implementation

const RawKeyboardListenerModifier({
  super.key,
  super.child,
  super.modifierKey,
  required this.focusNode,
  this.autofocus = false,
  this.includeSemantics = true,
  this.onKey,
});