Bloc<Event, State> constructor Null safety

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();
}