RxPaginatedImpl<K, T, V, C> class
Implementation of a Paginated transforming V
from Pagination to T
value.
- Inheritance
-
- Object
- Paginated<
K, T> - PaginatedImpl<
K, T, V, C> - RxPaginatedImpl
Constructors
-
RxPaginatedImpl({required FutureOr<
T?> transform({required V data, T? previous}), required Pagination<V, C, K> pagination, List<FutureOr< initial = const [], K? initialKey, C? initialCursor, void onDispose()?})Map< >K, T> >
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasNext → RxBool
-
Indicates whether the items have next page.
no setterinherited
- hasPrevious → RxBool
-
Indicates whether the items have previous page.
no setterinherited
-
initial
→ List<
FutureOr< Map< >K, T> > -
Initial
T
items to put inside the items.finalinherited - initialCursor → C?
-
ChatItemsCursor to fetch items around.
finalinherited
- initialKey → K?
-
ChatItemKey to fetch items around.
finalinherited
-
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 setterinherited
- onDispose → void Function()?
-
Callback, called when this Paginated is disposed.
finalinherited
-
pagination
→ Pagination<
V, C, K> ? -
Pagination fetching items.
finalinherited
- perPage → int
-
Returns count of
T
items fetched with each page.no setterinherited - previousLoading → RxBool
-
Indicates whether the previous page of items is being fetched.
no setterinherited
- rawLength → int
-
Returns the raw count of
V
items kept in pagination.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
status
→ Rx<
RxStatus> -
Reactive RxStatus of items being fetched.
finalinherited
-
transform
→ FutureOr<
T?> Function({required V data, T? previous}) -
Callback, called to transform the
V
toT
.final -
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.
override
-
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
-
put(
V item, {bool ignoreBounds = false}) → Future< void> -
Puts the provided
item
to the pagination. -
remove(
K key) → Future< void> -
Removes the item with the provided
key
from the pagination. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited