From 6ae228b4e2f8b49d4a76ad855871f9b338496a6a Mon Sep 17 00:00:00 2001 From: RuiAlonso Date: Thu, 21 Apr 2022 19:47:59 +0200 Subject: [PATCH] feat: added multiplier to game bloc state --- lib/game/bloc/game_state.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/game/bloc/game_state.dart b/lib/game/bloc/game_state.dart index 02098c3b..88071471 100644 --- a/lib/game/bloc/game_state.dart +++ b/lib/game/bloc/game_state.dart @@ -25,6 +25,7 @@ class GameState extends Equatable { required this.balls, required this.bonusHistory, }) : assert(score >= 0, "Score can't be negative"), + assert(multiplier > 0, 'Multiplier must be greater than zero'), assert(balls >= 0, "Number of balls can't be negative"); const GameState.initial()