PagedCollectionController<Item> class
Queries collection in a paged manner.
Items are fetched on demand in non-sequential chunks.
Useful for huge datasets in conjunction with paged views
(like TableCollectionTable
).
- Inheritance
-
- Object
- CollectionController<
Item> - PagedCollectionController
Constructors
-
PagedCollectionController(Collection<
Item> collection)
Properties
-
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< PagedCollectionModel< >Item> > -
no setteroverride
Methods
-
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
-
loadPage(
int page, int pageSize, {bool invalidate = false}) → Future< void> -
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