value_bloc library

Classes

Bloc<Event, State>
Takes a Stream of Events as input and transforms them into a Stream of States as output.
BlocObserver
An interface for observing the behavior of Bloc and Cubit instances.
Change<State>
A Change represents the change from one State to another. A Change consists of the currentState and nextState.
Cubit<State>
A Cubit is a subset of Bloc which has no notion of events and relies on methods to emit new states. [...]
FetchedListValueState<V, Filter>
FetchedSingleValueState<V, Filter>
FetchFailedListValueState<V, Filter>
FetchFailedSingleValueState<V, Filter>
FetchingListValueState<V, Filter>
FetchingSingleValueState<V, Filter>
FetchScheme
It represent a request for retrieving a values determined by offset and limit
IdleListValueState<V, Filter>
IdleSingleValueState<V, Filter>
ListFetcher
This class perform a fetch ignoring different limit pagination You can use this class in ListValueCubit when you are interested in using paging queries with different limit
ListValueCubit<V, Filter extends Object>
ListValueState<V, Filter>
LoadedListValueState<V, Filter>
LoadFailedListValueState<V, Filter>
LoadFailedSingleValueState<V, Filter>
LoadingListValueState<V, Filter>
LoadingSingleValueState<V, Filter>
PageFetcher
This class perform fetch with standard limit pagination You can use this class in ListValueCubit when you are interested in using paging queries with same limit
SingleValueCubit<V, Filter extends Object>
SingleValueState<V, Filter>
SuccessLoadedSingleValueState<V, Filter>
Transition<Event, State>
Occurs when an event is added after mapEventToState has been called but before the bloc's State has been updated. A Transition consists of the currentState, the event which was added, and the nextState.
ValueCubit<S extends ValueState<Filter>, Filter>
if loadingStatus is loading automatic start loading if fetchStatus is fetching automatic start fetching
ValueFetcher
This class permit a custom fetching for ListValueCubit
ValueState<Filter>

Mixins

FailedListValueState<V, Filter>
FailedSingleValueState<V, Filter>
FailedValueState<Filter>
FetchedValueState<Filter>
FetchFailedValueState<Filter>
FetchingValueState<Filter>
IdleValueState<Filter>
LoadedValueState<Filter>
LoadFailedValueState<Filter>
LoadingValueState<Filter>
ProcessingListValueState<V, Filter>
ProcessingSingleValueState<V, Filter>
ProcessingValueState<Filter>

Typedefs

TransitionFunction<Event, State>(Event) Stream<Transition<Event, State>>
Signature for a mapper function which takes an Event as input and outputs a Stream of Transition objects.

Exceptions / Errors

CubitUnhandledErrorException
Exception thrown when an unhandled error occurs within a Cubit. [...]