KeyDownEvent constructor

const KeyDownEvent(
  1. {required PhysicalKeyboardKey physicalKey,
  2. required LogicalKeyboardKey logicalKey,
  3. String? character,
  4. required Duration timeStamp,
  5. bool synthesized = false,
  6. KeyEventDeviceType deviceType = ui.KeyEventDeviceType.keyboard}
)

Creates a key event that represents the user pressing a key.

Implementation

const KeyDownEvent({
  required super.physicalKey,
  required super.logicalKey,
  super.character,
  required super.timeStamp,
  super.synthesized,
  super.deviceType,
});