Paginated<K, T> class abstract

Paginated view of T items.

Implementers

Constructors

Paginated({void onDispose()?})

Properties

hashCode int
The hash code for this object.
no setterinherited
hasNext RxBool
Indicates whether the items have next page.
no setter
hasPrevious RxBool
Indicates whether the items have previous page.
no setter
items RxSortedObsMap<K, T>
Paginated T items themselves.
final
length int
Returns count of T items kept in items.
no setter
nextLoading RxBool
Indicates whether the next page of items is being fetched.
no setter
onDispose → void Function()?
Callback, called when this Paginated is disposed.
final
perPage int
Returns count of T items fetched with each page.
no setter
previousLoading RxBool
Indicates whether the previous page of items is being fetched.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status Rx<RxStatus>
Reactive RxStatus of items being fetched.
final
updates Stream<void>
Initializes this Paginated while the returned Stream is listened and disposes when canceled.
no setter
values Iterable<T>
Returns the Iterable of T items kept in items.
no setter

Methods

around() Future<void>
Fetches the initial page of the items.
clear() Future<void>
Clears the Paginated.
dispose() → void
Disposes this Paginated.
ensureInitialized() Future<void>
Ensures this Paginated is initialized.
next() Future<void>
Fetches next page of the items.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
previous() Future<void>
Fetches previous page of the items.
toString() String
A string representation of this object.
inherited

Operators

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