LiveCollection<Model> class
abstract
Live Collection Abs layer
Constructors
Properties
- currentToken ↔ String?
-
Current Token (Next page token)
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFetching ↔ bool
-
if live collection fetching next page
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getFirstPageRequest(
) → Future< PageListData< List< >Model> , String> - get the first page request( with out token)
-
getNextPageRequest(
String? token) → Future< PageListData< List< >Model> , String> - get the next page request
-
getStreamController(
) → StreamController< List< Model> > - Listen to live collection
-
hasNextPage(
) → bool - Check if live collection have next page
-
loadNext(
) → Future - Load next page for live collection
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onError(
dynamic onErrorCallback(Object? error, StackTrace stackTrace)) → void - OnError
-
reset(
) → bool - Reset the live collection
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited