Bloc<Event, State> constructor

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

Takes a Stream of Events as input and transforms them into a Stream of States as output.

Implementation

Bloc(State initialState) : super(initialState) {
  _bindEventsToStates();
}