mirror of https://github.com/flutter/pinball.git
parent
ab77ebec67
commit
8766acf225
@ -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<GameEvent, GameState> {
|
||||
GameBloc() : super(GameInitial()) {
|
||||
on<GameEvent>((event, emit) {
|
||||
// TODO: implement event handler
|
||||
});
|
||||
}
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
part of 'game_bloc.dart';
|
||||
|
||||
@immutable
|
||||
abstract class GameEvent {}
|
@ -0,0 +1,6 @@
|
||||
part of 'game_bloc.dart';
|
||||
|
||||
@immutable
|
||||
abstract class GameState {}
|
||||
|
||||
class GameInitial extends GameState {}
|
Loading…
Reference in new issue