copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
GameHighScore copyWith({
int? position,
int? userId,
int? score,
}) =>
GameHighScore(
position: position ?? this.position,
userId: userId ?? this.userId,
score: score ?? this.score,
);