feat: added BallAdded event on ball mounted

pull/213/head
RuiAlonso 3 years ago
parent a3306d7219
commit 8ac7b105c3

@ -79,8 +79,8 @@ class BallController extends ComponentController<Ball>
} }
@override @override
Future<void>? onLoad() { void onMount() {
super.onMount();
gameRef.read<GameBloc>().add(const BallAdded()); gameRef.read<GameBloc>().add(const BallAdded());
return super.onLoad();
} }
} }

Loading…
Cancel
Save