KeyEvent constructor

const KeyEvent({
  1. required KeyCode code,
  2. String? char,
  3. bool isShiftPressed = false,
  4. bool isAltPressed = false,
  5. bool isCtrlPressed = false,
  6. bool isMetaPressed = false,
})

Creates a KeyEvent.

Implementation

const KeyEvent({
  required this.code,
  this.char,
  this.isShiftPressed = false,
  this.isAltPressed = false,
  this.isCtrlPressed = false,
  this.isMetaPressed = false,
});