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.


const KeyDownEvent({
  required PhysicalKeyboardKey physicalKey,
  required LogicalKeyboardKey logicalKey,
  String? character,
  required Duration timeStamp,
  bool synthesized = false,
}) : super(
       physicalKey: physicalKey,
       logicalKey: logicalKey,
       character: character,
       timeStamp: timeStamp,
       synthesized: synthesized,