SingleItemPaginated<K, T> class

Paginated with a single item.

Inheritance

Constructors

SingleItemPaginated(K key, T item)

Properties

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

Methods

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

Operators

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