Bloc<S extends BlocState> constructor

Bloc<S extends BlocState>({
  1. S? initialState,
  2. BlocStateBuilder<S>? initialStateBuilder,
})

Implementation

Bloc({
  this.initialState,
  this.initialStateBuilder,
}) {
  setState(getInitialState());
}