PlayerInfo constructor Null safety

PlayerInfo(
  1. {DurationInformation? durationInformation,
  2. DifficultyInformation? difficultyInformation,
  3. int? minutesPlayed,
  4. int? questionsAnswered,
  5. int? elo,
  6. int? questionsRightAnswered,
  7. CategoryInformation? categoryInformation,
  8. String? username}
)

Implementation

PlayerInfo(
    {this.durationInformation,
      this.difficultyInformation,
      this.minutesPlayed,
      this.questionsAnswered,
      this.elo,
      this.questionsRightAnswered,
      this.categoryInformation,
      this.username});