Bloc<Event, State> constructor

Bloc<Event, State>(
  1. State state
)

Implementation

Bloc(this.state) {
  _stateSC.stream.listen((state) {
    this.state = state;
  });
  _emit(state);
}