AbstractItemBloc<S extends AbstractItemState> constructor

AbstractItemBloc<S extends AbstractItemState>(
  1. S initialState
)

Implementation

AbstractItemBloc(S initialState) : super(initialState) {
  on(
    (AbstractItemEvent event, Emitter<S> emit) async {
      if (event is AbstractItemLoadEvent) {
        await load(event, emit);
      }
    },
  );
}