Fixed tests
This commit is contained in:
@@ -26,8 +26,8 @@ class GameSession extends ChangeNotifier {
|
|||||||
int roundNumber;
|
int roundNumber;
|
||||||
List<Round> roundList;
|
List<Round> roundList;
|
||||||
|
|
||||||
GameSession(
|
GameSession({
|
||||||
{required this.id,
|
required this.id,
|
||||||
required this.createdAt,
|
required this.createdAt,
|
||||||
required this.gameTitle,
|
required this.gameTitle,
|
||||||
required this.players,
|
required this.players,
|
||||||
@@ -37,7 +37,8 @@ class GameSession extends ChangeNotifier {
|
|||||||
this.isGameFinished = false,
|
this.isGameFinished = false,
|
||||||
this.winner = '',
|
this.winner = '',
|
||||||
this.roundNumber = 1,
|
this.roundNumber = 1,
|
||||||
this.roundList = const []});
|
List<Round>? roundList,
|
||||||
|
}) : roundList = roundList ?? [];
|
||||||
|
|
||||||
@override
|
@override
|
||||||
toString() {
|
toString() {
|
||||||
|
|||||||
Reference in New Issue
Block a user