PageProvider<T, C, K> class abstract

Utility providing the Pages.

Implementers

Constructors

PageProvider()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

after(K? key, C? cursor, int count) FutureOr<Page<T, C>?>
Fetches the Page after the provided key or cursor.
around(K? key, C? cursor, int count) FutureOr<Page<T, C>?>
Fetches the Page around the provided key or cursor.
before(K? key, C? cursor, int count) FutureOr<Page<T, C>?>
Fetches the Page before the provided key or cursor.
clear() Future<void>
Clears this PageProvider.
dispose() → void
Disposes this PageProvider, freeing any resources it might've occupied.
init(K? key, int count) Future<Page<T, C>?>
Initializes this PageProvider, loading initial Page, if any.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(Iterable<T> items, {int compare(T, T)?}) Future<void>
Adds the provided items to this PageProvider.
remove(K key) Future<void>
Removes the item specified by its key from this PageProvider.
toString() String
A string representation of this object.
inherited

Operators

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