Skip to main content
The Flutter SDK exposes live objects as Dart streams and live collections through LiveCollection / LiveCollectionStream. A live collection emits LiveResult<T>, which contains the current data list and an isFetching flag.

Platform Surface

Parameters

Observe A Live Object

Observe a live object when your Flutter UI needs one SDK object to stay current after server or local-cache changes.

Observe A Live Collection

getStream() emits LiveResult<AmityPost>. Keep the collection instance so you can load more pages and dispose it later.

Notes

  • getStream() starts the first page load for LiveCollection.
  • Use observeLoadingState() when you only need loading changes.
  • Call loadNext() only when hasNextPage() is true.
  • Call reset() to clear the collection and reload the first page.
  • Cancel every StreamSubscription and call dispose() on live collections that are no longer used.

Post Retrieval

See post-specific Flutter retrieval examples.

Flutter Push Notifications

Configure Flutter notification setup alongside real-time data.