KeyEvent constructor

const KeyEvent(
  1. KeyCode code, {
  2. KeyModifiers modifiers = const KeyModifiers(0),
  3. KeyEventType eventType = KeyEventType.keyPress,
  4. KeyEventState eventState = const KeyEventState(0),
})

Constructs a new instance of KeyEvent.

Implementation

const KeyEvent(
  this.code, {
  this.modifiers = const KeyModifiers(0),
  this.eventType = KeyEventType.keyPress,
  this.eventState = const KeyEventState(0),
});