Bloc<E, S> constructor
Bloc<E, S> (
- S initial
Add the initial state once
Implementation
Bloc(this.initial) {
_controller = BehaviorSubject<S>()..add(initial);
}
Add the initial state once
Bloc(this.initial) {
_controller = BehaviorSubject<S>()..add(initial);
}