LoaderFactory<I, T extends WithId<I>, F extends AbstractFilter> class abstract

A factory that produces loaders from different filters.

I is the type of ID. T is the type of the entities. F is the type of the filter used on the collection.

Constructors

LoaderFactory()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

byIdBloc(I id) ModelByIdBloc<I, T>
Returns a loader for a single object by id. Returns a self-updated bloc if possible, or a frozen one otherwise.
clear() Future<void>
Deletes all loaders.
createFrozenByIdBloc(I id) ModelByIdBloc<I, T>
Creates a loader for a single object by id that is not self-updated when the data changes at the origin.
createFrozenListBloc(F filter) LazyLoadBloc<T>
Creates a lazy loader for the objects matching the filter that is not self-updated when the data changes at the origin.
createFrozenModelByFilterBloc(F filter) ModelByFilterBloc<I, T>
Creates a loader for a single object by filter that is not self-updated when the data changes at the origin.
createLiveByIdBloc(I id) ModelByIdBloc<I, T>
Creates a loader for a single object by id that is self-updated when the data changes at the origin.
createLiveListBloc(F filter) LazyLoadBloc<T>
Creates a lazy loader for the objects matching the filter that is self-updated when the data changes at the origin.
createLiveModelByFilterBloc(F filter) ModelByFilterBloc<I, T>
Creates a loader for a single object by filter that is self-updated when the data changes at the origin.
frozenByIdBloc(I id) ModelByIdBloc<I, T>
Returns a loader for a single object by id that is not self-updated when the data changes at the origin.
frozenListBloc(F filter) LazyLoadBloc<T>
Creates a lazy loader for the objects matching the filter that is not self-updated when the data changes at the origin.
frozenModelByFilterBloc(F filter) ModelByFilterBloc<I, T>
Returns a loader for a single object by filter that is not self-updated when the data changes at the origin.
listBloc(F filter) LazyLoadBloc<T>
Returns a lazy loader for the objects matching the filter. Returns a self-updated bloc if possible, or a frozen one otherwise.
liveByIdBloc(I id) ModelByIdBloc<I, T>
Returns a loader for a single object by id that is self-updated when the data changes at the origin.
liveListBloc(F filter) LazyLoadBloc<T>
Creates a lazy loader for the objects matching the filter that is self-updated when the data changes at the origin.
liveModelByFilterBloc(F filter) ModelByFilterBloc<I, T>
Returns a loader for a single object by filter that is self-updated when the data changes at the origin.
modelByFilterBloc(F filter) ModelByFilterBloc<I, T>
Returns a loader for a single object by filter. Returns a self-updated bloc if possible, or a frozen one otherwise.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited