SequentialCollectionController<Item> class
Controls collection querying in a lazy sequential manner.
Queries the whole collection in chunks. Chunks are fetched on demand by calling continueLoading.
- Inheritance
-
- Object
- CollectionController<
Item> - SequentialCollectionController
Constructors
-
SequentialCollectionController(Collection<
Item> collection, {int chunkSize = 25})
Properties
- chunkSize → int
-
final
-
collection
→ Collection<
Item> -
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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 -
override
-
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