import 'package:bloc/bloc.dart';
import 'package:meta/meta.dart';

class SeededBloc extends Bloc<String, int> {
  SeededBloc({@required this.seed, @required this.states}) : super(seed);

  final List<int> states;
  final int seed;

  @override
  Stream<int> mapEventToState(String event) async* {
    for (final state in states) {
      yield state;
    }
  }
}
