Added toString methods

This commit is contained in:
2025-11-12 20:01:44 +01:00
parent 67d5f7e891
commit 3f5a840675
3 changed files with 17 additions and 2 deletions

View File

@@ -6,13 +6,18 @@ class Game {
final String name;
final List<Player>? players;
final Group? group;
final String? winner;
final String winner;
Game({
this.players,
this.group,
this.winner,
this.winner = '',
required this.id,
required this.name,
});
@override
String toString() {
return 'Game{\n\tid: $id,\n\tname: $name,\n\tplayers: $players,\n\tgroup: $group,\n\twinner: $winner\n}';
}
}