Key constructor

const Key(
  1. KeyType type, {
  2. List<int> runes = const [],
  3. bool ctrl = false,
  4. bool alt = false,
  5. bool shift = false,
  6. bool isRelease = false,
  7. bool isRepeat = false,
})

Creates a key event.

Implementation

const Key(
  this.type, {
  this.runes = const [],
  this.ctrl = false,
  this.alt = false,
  this.shift = false,
  this.isRelease = false,
  this.isRepeat = false,
});