GenericBloc<T> constructor
GenericBloc<T> ()
Implementation
GenericBloc() : super(const _LoadingState()) {
on<GenericEvent<T>>(
(event, emit) => event.map(
showLoading: (event) => _onShowLoading(event, emit),
showLoaded: (event) => _onShowLoaded(event, emit),
showFullLoaded: (event) => _onShowFullLoaded(event, emit),
showError: (event) => _onShowError(event, emit),
refresh: (event) => _onRefresh(event, emit),
),
);
}