Merge remote-tracking branch 'origin/development' into bug/195-datenbank-onDelete-ueberpruefen
# Conflicts: # assets/schema.json # lib/data/db/tables/player_match_table.dart # lib/data/models/game.dart
This commit is contained in:
@@ -11,6 +11,26 @@ class ScoreEntry {
|
||||
return 'ScoreEntry{roundNumber: $roundNumber, score: $score, change: $change}';
|
||||
}
|
||||
|
||||
ScoreEntry copyWith({int? roundNumber, int? score, int? change}) {
|
||||
return ScoreEntry(
|
||||
roundNumber: roundNumber ?? this.roundNumber,
|
||||
score: score ?? this.score,
|
||||
change: change ?? this.change,
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is ScoreEntry &&
|
||||
runtimeType == other.runtimeType &&
|
||||
roundNumber == other.roundNumber &&
|
||||
score == other.score &&
|
||||
change == other.change;
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(roundNumber, score, change);
|
||||
|
||||
ScoreEntry.fromJson(Map<String, dynamic> json)
|
||||
: roundNumber = json['roundNumber'],
|
||||
score = json['score'],
|
||||
|
||||
Reference in New Issue
Block a user