Add history bloc

This commit is contained in:
Oystein Kristoffer Tveit 2020-07-13 23:39:26 +02:00
parent b45a661cff
commit 3f81379097
3 changed files with 28 additions and 0 deletions

View File

@ -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
}
}

View File

@ -0,0 +1,4 @@
part of 'history_bloc.dart';
@immutable
abstract class HistoryEvent {}

View File

@ -0,0 +1,6 @@
part of 'history_bloc.dart';
@immutable
abstract class HistoryState {}
class HistoryInitial extends HistoryState {}