DataSource<PageKeyType, ItemType> class abstract

Constructors

DataSource({bool isEndList = false, int pageSize = kDefaultPageSize, PageKeyType? currentKey})

Properties

currentKey ↔ PageKeyType?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isEndList bool
true when your list is don't have any data for next request.
getter/setter pair
pageSize int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

loadInitial(int pageSize, {PageKeyType? refreshKey}) Future<Tuple2<List<ItemType>, PageKeyType>>
loadPage({bool isRefresh = false, PageKeyType? newKey}) Future<List<ItemType>>
Request load page for Data Source
loadPageAfter(PageKeyType params, int pageSize) Future<Tuple2<List<ItemType>, PageKeyType>>
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