Add history bloc
This commit is contained in:
parent
b45a661cff
commit
3f81379097
|
@ -0,0 +1,18 @@
|
||||||
|
import 'dart:async';
|
||||||
|
|
||||||
|
import 'package:bloc/bloc.dart';
|
||||||
|
import 'package:meta/meta.dart';
|
||||||
|
|
||||||
|
part 'history_event.dart';
|
||||||
|
part 'history_state.dart';
|
||||||
|
|
||||||
|
class HistoryBloc extends Bloc<HistoryEvent, HistoryState> {
|
||||||
|
HistoryBloc() : super(HistoryInitial());
|
||||||
|
|
||||||
|
@override
|
||||||
|
Stream<HistoryState> mapEventToState(
|
||||||
|
HistoryEvent event,
|
||||||
|
) async* {
|
||||||
|
// TODO: implement mapEventToState
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,4 @@
|
||||||
|
part of 'history_bloc.dart';
|
||||||
|
|
||||||
|
@immutable
|
||||||
|
abstract class HistoryEvent {}
|
|
@ -0,0 +1,6 @@
|
||||||
|
part of 'history_bloc.dart';
|
||||||
|
|
||||||
|
@immutable
|
||||||
|
abstract class HistoryState {}
|
||||||
|
|
||||||
|
class HistoryInitial extends HistoryState {}
|
Loading…
Reference in New Issue