KeyDownEvent constructor Null safety

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

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,
});