Bloc<S extends BlocState> constructor
Bloc<S extends BlocState> ({
- S? initialState,
- BlocStateBuilder<
S> ? initialStateBuilder,
Implementation
Bloc({
this.initialState,
this.initialStateBuilder,
}) {
setState(getInitialState());
}