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() {