KeyEvent constructor
- required PhysicalKeyboardKey physicalKey,
- required LogicalKeyboardKey logicalKey,
- String? character,
- required Duration timeStamp,
- KeyEventDeviceType deviceType = ui.KeyEventDeviceType.keyboard,
- bool synthesized = false,
Create a const KeyEvent by providing each field.
Implementation
const KeyEvent({
required this.physicalKey,
required this.logicalKey,
this.character,
required this.timeStamp,
this.deviceType = ui.KeyEventDeviceType.keyboard,
this.synthesized = false,
});