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