PaginatedImpl<K, T, V, C> class
Implementation of a Paginated.
- Inheritance
- Implementers
Constructors
-
PaginatedImpl({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 setteroverride
- hasPrevious → RxBool
-
Indicates whether the items have previous page.
no setteroverride
-
initial
→ List<
FutureOr< Map< >K, T> > -
Initial
T
items to put inside the items.final - initialCursor → C?
-
ChatItemsCursor to fetch items around.
final
- initialKey → K?
-
ChatItemKey to fetch items around.
final
-
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
-
pagination
→ Pagination<
V, C, K> ? -
Pagination fetching items.
final
- 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.
override
-
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