copyWith method

GameHighScores copyWith({
  1. List<GameHighScore>? scores,
})

Implementation

GameHighScores copyWith({
  List<GameHighScore>? scores,
}) =>
    GameHighScores(
      scores: scores ?? this.scores,
    );