KeyEvent constructor

const KeyEvent(
  1. String key,
  2. KeyType type, {
  3. Set<Modifier> modifiers = const <Modifier>{},
  4. KeyEventType eventType = KeyEventType.press,
  5. int? shiftedCodepoint,
  6. int? baseLayoutCodepoint,
})

Creates a KeyEvent.

Implementation

const KeyEvent(
  this.key,
  this.type, {
  this.modifiers = const <Modifier>{},
  this.eventType = KeyEventType.press,
  this.shiftedCodepoint,
  this.baseLayoutCodepoint,
});