PageKeyedDataSource<K, D> class abstract

K is type of page index, D is type of data

Constructors

PageKeyedDataSource({bool isEndList = false, bool autoDetectEndList = true, int pageSize = kDefaultPageSize})

Properties

autoDetectEndList bool
final
currentKey ↔ K?
Current Key of page loaded success
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isEndList bool
true if data source is loaded all data false if data source is not loaded all data
getter/setter pair
pageSize int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

loadInitial(int pageSize) Future<Tuple2<List<D>, K>>
Load for first time Item1(List
loadPage({bool isRefresh = false}) Future<List<D>>
Request load page for Data Source
loadPageAfter(K params, int pageSize) Future<Tuple2<List<D>, K>>
Load for page after page has key is param Item1(List
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

Constants

TAG → const String