SequentialCollectionController<Item> class abstract

Controls collection querying in a lazy sequential manner.

Queries the whole collection in chunks. Chunks are fetched on demand by calling continueLoading.

Inheritance

Constructors

SequentialCollectionController({int chunkSize = 25})
SequentialCollectionController.pull(PullCollection<Item> collection, {int chunkSize = 25})
factory

Properties

chunkSize int
final
hashCode int
The hash code for this object.
no setterinherited
params Map<String, String>
finalinherited
query Map<String, List<String>>
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream Stream<PropertyState<SequentialCollectionModel<Item>>>
no setteroverride

Methods

continueLoading({bool invalidate = false}) Future<void>
Requests a section of the collection.
dispose() → void
inherited
invalidate() Future<void>
Invalidates caches and implies that data should be re-fetched while trying to keep the current collection state (f.e. page offset and size in PagedCollectionController).
override
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

Static Methods

reactive<Item extends TransferObjectBase<Id>, Id>(ReactiveCollection<Item, Id> collection, {int chunkSize = 25}) SequentialCollectionController<Item>