KeyEvent constructor

const KeyEvent(
  1. KeyCode code, {
  2. KeyModifiers modifiers = KeyModifiers.none,
  3. KeyEventType eventType = KeyEventType.keyPress,
})

Constructs a new instance of KeyEvent.

Implementation

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