KeyRepeatEvent constructor Null safety

const KeyRepeatEvent(
  1. {required PhysicalKeyboardKey physicalKey,
  2. required LogicalKeyboardKey logicalKey,
  3. String? character,
  4. required Duration timeStamp}

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


const KeyRepeatEvent({
  required PhysicalKeyboardKey physicalKey,
  required LogicalKeyboardKey logicalKey,
  String? character,
  required Duration timeStamp,
}) : super(
       physicalKey: physicalKey,
       logicalKey: logicalKey,
       character: character,
       timeStamp: timeStamp,