KeyData constructor

const KeyData({
  1. required Duration timeStamp,
  2. required KeyEventType type,
  3. required int physical,
  4. required int logical,
  5. required String? character,
  6. required bool synthesized,
  7. KeyEventDeviceType deviceType = KeyEventDeviceType.keyboard,
})

Creates an object that represents a key event.

Implementation

const KeyData({
  required this.timeStamp,
  required this.type,
  required this.physical,
  required this.logical,
  required this.character,
  required this.synthesized,
  this.deviceType = KeyEventDeviceType.keyboard,
});