docs: included TODO comment

pull/111/head
alestiago 4 years ago
parent 722574c182
commit fe33bb7875

@ -69,9 +69,11 @@ class LaunchedBallController extends BallController
@override
void lost() {
super.lost();
final bloc = gameRef.read<GameBloc>()..add(const BallLost());
final shouldBallRespwan = !bloc.state.isLastBall && !bloc.state.isGameOver;
// TODO(alestiago): Consider the use of onNewState instead.
final shouldBallRespwan = !bloc.state.isLastBall && !bloc.state.isGameOver;
if (shouldBallRespwan) gameRef.spawnBall();
}
}

Loading…
Cancel
Save