value_bloc library

Classes

AuthCubit<TFailure, TSuccess>
AuthCubitAuthorized<TFailure, TSuccess>
AuthCubitAuthorizing<TFailure, TSuccess>
AuthCubitReauthorizing<TFailure, TSuccess>
AuthCubitState<TFailure, TSuccess>
AuthCubitUnauthorized<TFailure, TSuccess>
AuthCubitUnauthorizing<TFailure, TSuccess>
Bloc<Event, State>
Takes a Stream of Events as input and transforms them into a Stream of States as output.
BlocBase<State>
An interface for the core functionality implemented by both Bloc and Cubit.
BlocObserver
An interface for observing the behavior of Bloc instances.
Change<State>
A Change represents the change from one State to another. A Change consists of the currentState and nextState.
Closer
CloserEntry
CloserProvider
CollectionCubit<Value, ExtraData>
Cubit<State>
A Cubit is similar to Bloc but has no notion of events and relies on methods to emit new states.
CudCubit<RawValue, PartialValue, Value>
CudCubitCreated<RawValue, PartialValue, Value>
CudCubitCreating<RawValue, PartialValue, Value>
CudCubitDeleted<RawValue, PartialValue, Value>
CudCubitDeleting<RawValue, PartialValue, Value>
CudCubitIdle<RawValue, PartialValue, Value>
CudCubitState<RawValue, PartialValue, Value>
CudCubitUpdated<RawValue, PartialValue, Value>
CudCubitUpdating<RawValue, PartialValue, Value>
DataCubit<TState extends DataState<TFailure, TData>, TFailure, TData>
DataState<TFailure, TData>
DelegateEntry
DynamicCubit<State>
Emitter<State>
An Emitter is a class which is capable of emitting new states.
EmptyFetchEvent<V>
FailedFetchEvent<V>
IterableCubit<Value, ExtraData>
IterableCubitState<Value, ExtraData>
IterableCubitUpdated<Value, ExtraData>
The job list has been updated.
IterableCubitUpdateFailed<Value, ExtraData>
The job is failed.
IterableCubitUpdating<Value, ExtraData>
The job list is being updated.
IterableFetchedEvent<V>
ListCubit<Value, ExtraData>
ListDataCubit<TFailure, TData>
ListDataCubitBase<TFailure, TData>
LoadCubit<ExtraData>
LoadCubitFailed<ExtraData>
LoadCubitIdle<ExtraData>
LoadCubitLoaded<ExtraData>
LoadCubitLoading<ExtraData>
LoadCubitState<ExtraData>
MapDataCubit<TFailure, TData>
MapDataCubitBase<TFailure, TData>
ModularBloc<Event, State>
See ModularCubitMixin
ModularCubit<State>
See ModularCubitMixin
MultiCubit<Value, Filter, ExtraData>
Allows you to fetch data in a secure and paginated way using the fetcher function
MultiDataCubit<TFailure, TData>
MultiDataState<TFailure, TData>
MultiFetchEvent<V>
ObjectCubit<Value, ExtraData>
ObjectCubitState<Value, ExtraData>
ObjectCubitUpdated<Value, ExtraData>
ObjectCubitUpdateFailed<Value, ExtraData>
ObjectCubitUpdating<Value, ExtraData>
ObjectDataCubit<TFailure, TData>
ObjectDataCubitBase<TFailure, TData>
ObjectFetchedEvent<V>
PageOffset
It represent a request for retrieving a values determined by startAt and length
SetCubit<Value, ExtraData>
SingleCubit<Value, Filter, ExtraData>
It allows you to wait for the fetch of a value, if it is not successful it notifies the failure, if the value does not exist it notifies the non-existence otherwise it notifies the new value.
SingleDataState<TFailure, TData>
SingleFetchEvent<V>
Transition<Event, State>
A Transition is the change from one state to another. Consists of the currentState, an event, and the nextState.
ValueCubit<Value, ExtraData>
Allows you to wait for the loading of a value, if it is not successful it notifies the failure otherwise it notifies the new value

Enums

DataStatus

Mixins

BlocCloser<State>
It allows you to automatic close Cubit with CloseableBlocExtension It allows you to automatic unsubscribe to a StreamSubscription with CloseableStreamSubscriptionExtension
LoadCubitModule<ExtraData, State>
ModularCubitMixin<State>
It allows you to combine several modules into a single cubit
SingleDataCubit<TState extends DataState<TFailure, TData>, TFailure, TData>

Typedefs

Equalizer<T> = bool Function(T a, T b)
EventHandler<Event, State> = FutureOr<void> Function(Event event, Emitter<State> emit)
An event handler is responsible for reacting to an incoming Event and can emit zero or more states via the Emitter.
EventMapper<Event> = Stream<Event> Function(Event event)
Signature for a function which converts an incoming event into an outbound stream of events. Used when defining custom EventTransformers.
EventTransformer<Event> = Stream<Event> Function(Stream<Event> events, EventMapper<Event> mapper)
Used to change how events are processed. By default events are processed concurrently.
GroupDataReader = void Function(PageOffset offset)
Indexer<T> = int Function(T value)
ListDataReader = void Function()
ListFetcher<Value, Filter> = Stream<MultiFetchEvent<Iterable<Value>>> Function(PageOffset section, Filter filter)
Loader = void Function()
ObjectDataReader = void Function()
TransitionFunction<Event, State> = Stream<Transition<Event, State>> Function(Event)
@Deprecated - Use on<Event> with an EventTransformer instead. Will be removed in v8.0.0
ValueFetcher<Value, Filter> = Stream<SingleFetchEvent<Value>> Function(Filter? filter)

Exceptions / Errors

BlocUnhandledErrorException
Exception thrown when an unhandled error occurs within a bloc.