Bloc<E, S> constructor

Bloc<E, S>(
  1. S initial
)

Add the initial state once

Implementation

Bloc(this.initial) {
  _controller = BehaviorSubject<S>()..add(initial);
}