FirebaseActivityFeedSource class final
ActivityFeedSource backed by Cloud Firestore.
Items are stored in a Firestore collection ordered by
timestamp descending.
final source = FirebaseActivityFeedSource();
- Implemented types
Constructors
- FirebaseActivityFeedSource({FirebaseFirestore? firestore, String collection = 'activity_feed'})
- Creates a FirebaseActivityFeedSource.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
fetchPage(
{required int page, required int pageSize, String? userId}) → Future< List< Map< >String, dynamic> > -
Fetches a page of raw feed item maps, ordered by timestamp descending.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
publish(
Map< String, dynamic> item) → Future<void> -
Publishes a raw feed item map to the backend.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
watchNewItems(
{String? userId}) → Stream< Map< String, dynamic> > -
Returns a stream that emits raw maps for new items as they arrive.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited