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