Pagination class final

A pagination controller: loads a list's items page by page and exposes its state as a map variable named name (${name.items}, ${name.page}, ${name.pageCount}, ${name.hasMore}, ${name.isLoadingMore}, ${name.error}...). Paginate actions move it.

Inheritance

Constructors

Pagination({required String name, PaginationMode mode = PaginationMode.infinite})
factory

Properties

apiId → String?
no setter
cachePages → bool
no setter
cursorPath → String
no setter
fields → Props
The values that differ from the defaults.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
initialPage → int
no setter
isEmpty → bool
Whether every field has its default.
no setterinherited
itemsPath → String
no setter
keyPath → String
no setter
mode → PaginationMode
no setter
name → String
no setter
pageSize → int
no setter
pageSizeOptions → List<int>
no setter
parameters → Json
no setter
pullToRefresh → bool
no setter
refreshBackgroundColor → Color?
no setter
refreshColor → Color?
no setter
refreshDisplacement → double
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → PaginationSource
no setter
spec → WidgetSpec
The declared fields.
no setteroverride
strategy → PaginationStrategy
A cloud source always pages by cursor.
no setter
thresholdItems → int
no setter
thresholdPixels → double
no setter
totalPath → String
no setter

Methods

get<T>(PropDef<T> field) → T
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set<T>(PropDef<T> field, T value) → Pagination
toJson() → Json
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Object? json) → Pagination?