KeyEvent constructor

const KeyEvent({
  1. NamedKey? key,
  2. String? char,
  3. bool ctrl = false,
  4. bool alt = false,
  5. bool shift = false,
  6. List<int> raw = const [],
})

Implementation

const KeyEvent({
  this.key,
  this.char,
  this.ctrl = false,
  this.alt = false,
  this.shift = false,
  this.raw = const [],
}) : assert(key != null || char != null,
          'KeyEvent must have either key or char set');