From 8766acf225eac2d4f31ef65ffbca9800345d4a89 Mon Sep 17 00:00:00 2001 From: alestiago Date: Mon, 28 Feb 2022 17:08:15 +0000 Subject: [PATCH] chore: generated bloc using VS extension --- lib/game/bloc/game_bloc.dart | 13 +++++++++++++ lib/game/bloc/game_event.dart | 4 ++++ lib/game/bloc/game_state.dart | 6 ++++++ 3 files changed, 23 insertions(+) create mode 100644 lib/game/bloc/game_bloc.dart create mode 100644 lib/game/bloc/game_event.dart create mode 100644 lib/game/bloc/game_state.dart diff --git a/lib/game/bloc/game_bloc.dart b/lib/game/bloc/game_bloc.dart new file mode 100644 index 00000000..a1933667 --- /dev/null +++ b/lib/game/bloc/game_bloc.dart @@ -0,0 +1,13 @@ +import 'package:bloc/bloc.dart'; +import 'package:meta/meta.dart'; + +part 'game_event.dart'; +part 'game_state.dart'; + +class GameBloc extends Bloc { + GameBloc() : super(GameInitial()) { + on((event, emit) { + // TODO: implement event handler + }); + } +} diff --git a/lib/game/bloc/game_event.dart b/lib/game/bloc/game_event.dart new file mode 100644 index 00000000..5a4efbe3 --- /dev/null +++ b/lib/game/bloc/game_event.dart @@ -0,0 +1,4 @@ +part of 'game_bloc.dart'; + +@immutable +abstract class GameEvent {} diff --git a/lib/game/bloc/game_state.dart b/lib/game/bloc/game_state.dart new file mode 100644 index 00000000..68fca14f --- /dev/null +++ b/lib/game/bloc/game_state.dart @@ -0,0 +1,6 @@ +part of 'game_bloc.dart'; + +@immutable +abstract class GameState {} + +class GameInitial extends GameState {}