From dab7725c98344030dbc203b3dfba49d1c8c428ea Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Sat, 23 Aug 2025 18:27:23 +0200 Subject: [PATCH] Fixed tests --- lib/data/dto/game_session.dart | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/lib/data/dto/game_session.dart b/lib/data/dto/game_session.dart index 5bd0bc0..b127e97 100644 --- a/lib/data/dto/game_session.dart +++ b/lib/data/dto/game_session.dart @@ -26,18 +26,19 @@ class GameSession extends ChangeNotifier { int roundNumber; List roundList; - GameSession( - {required this.id, - required this.createdAt, - required this.gameTitle, - required this.players, - required this.pointLimit, - required this.caboPenalty, - required this.isPointsLimitEnabled, - this.isGameFinished = false, - this.winner = '', - this.roundNumber = 1, - this.roundList = const []}); + GameSession({ + required this.id, + required this.createdAt, + required this.gameTitle, + required this.players, + required this.pointLimit, + required this.caboPenalty, + required this.isPointsLimitEnabled, + this.isGameFinished = false, + this.winner = '', + this.roundNumber = 1, + List? roundList, + }) : roundList = roundList ?? []; @override toString() {