FeedData class

A feed in the Stream Feeds system.

A container for activities that can be followed, have members, and maintain social relationships. Contains feed metadata, social statistics, access control capabilities, and supports real-time updates via WebSocket.

Available extensions
Annotations
  • @freezed

Constructors

FeedData({required int activityCount, required DateTime createdAt, required UserData createdBy, DateTime? deletedAt, required String description, required FeedId fid, List<String> filterTags = const [], required int followerCount, required int followingCount, required String groupId, required String id, LocationCoordinate? location, required int memberCount, required String name, required List<FeedOwnCapability> ownCapabilities, FeedMemberData? ownMembership, List<FollowData>? ownFollowings, List<FollowData>? ownFollows, required int pinCount, required DateTime updatedAt, FeedVisibility? visibility, Map<String, Object?>? custom})
Creates a new FeedData instance.
const

Properties

activityCount → int
The number of activities in the feed.
final
copyWith → $FeedDataCopyWith<FeedData>
Create a copy of FeedData with the given fields replaced by the non-null parameter values.
no setterinherited
createdAt → DateTime
The date and time when the feed was created.
final
createdBy → UserData
The user who created the feed.
final
custom → Map<String, Object?>?
A map of custom attributes associated with the feed.
final
deletedAt → DateTime?
The date and time when the feed was deleted, if applicable.
final
description → String
A description of the feed.
final
fid → FeedId
The unique identifier for the feed.
final
filterTags → List<String>
A list of tags used to filter the feed.
final
followerCount → int
The number of followers for the feed.
final
followingCount → int
The number of feeds that this feed is following.
final
groupId → String
The group identifier for the feed.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
The unique identifier for the feed.
final
location → LocationCoordinate?
Geographic location associated with the feed, if any.
final
memberCount → int
The number of members in the feed.
final
name → String
The name of the feed.
final
ownCapabilities → List<FeedOwnCapability>
The capabilities that the current user has on the feed.
final
ownFollowings → List<FollowData>?
The feeds that the current user is following from this feed.
final
ownFollows → List<FollowData>?
The follow relationships of the current user in the feed.
final
ownMembership → FeedMemberData?
The membership information of the current user in the feed.
final
pinCount → int
The number of pinned items in the feed.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
updatedAt → DateTime
The date and time when the feed was last updated.
final
visibility → FeedVisibility?
The visibility status of the feed.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
updateWith(FeedData updated, {List<FeedOwnCapability>? ownCapabilities, FeedMemberData? ownMembership, List<FollowData>? ownFollowings, List<FollowData>? ownFollows, bool hasOwnFields = false}) → FeedData

Available on FeedData, provided by the FeedDataMutations extension

Updates this feed with new data while preserving own data.

Operators

operator ==(Object other) → bool
The equality operator.
inherited