FeedAddActivityRequest class
A request for adding an activity to feeds.
Contains activity content, targeting information, attachments, and metadata needed to create a new activity across multiple feeds. Supports advanced features like location data, visibility controls, and file attachments.
- Annotations
-
- @freezed
Constructors
-
FeedAddActivityRequest({required String type, List<
String> feeds = const [], List<Attachment> ? attachments, List<StreamAttachment> ? attachmentUploads, Map<String, Object> ? custom, String? expiresAt, List<String> ? filterTags, String? id, List<String> ? interestTags, ActivityLocation? location, List<String> ? mentionedUserIds, String? parentId, String? pollId, Map<String, Object> ? searchData, String? text, AddActivityRequestVisibility? visibility, String? visibilityTag}) -
Creates a new FeedAddActivityRequest instance.
const
Properties
-
attachments
→ List<
Attachment> ? -
List of file attachments to include with the activity.
final
-
attachmentUploads
→ List<
StreamAttachment> ? -
Optional list of stream attachments to be uploaded before adding the
activity to the feeds.
final
-
copyWith
→ $FeedAddActivityRequestCopyWith<
FeedAddActivityRequest> -
Create a copy of FeedAddActivityRequest
with the given fields replaced by the non-null parameter values.
no setterinherited
-
custom
→ Map<
String, Object> ? -
Custom data associated with the activity.
final
- expiresAt → String?
-
Optional expiration date for the activity.
final
-
feeds
→ List<
String> -
List of feed IDs where this activity should be posted.
final
-
filterTags
→ List<
String> ? -
Optional filter tags for content categorization.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
Optional unique identifier for the activity.
final
-
interestTags
→ List<
String> ? -
Optional interest tags for content discovery.
final
- location → ActivityLocation?
-
Optional location data for the activity.
final
-
mentionedUserIds
→ List<
String> ? -
Optional list of user IDs mentioned in the activity.
final
- parentId → String?
-
Optional parent activity ID for replies or reposts.
final
- pollId → String?
-
Optional poll ID to associate with the activity.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
searchData
→ Map<
String, Object> ? -
Optional search metadata for enhanced discoverability.
final
- text → String?
-
Optional text content of the activity.
final
- type → String
-
The type of activity being created.
final
- visibility → AddActivityRequestVisibility?
-
Optional visibility setting for the activity.
final
- visibilityTag → String?
-
Optional visibility tag for custom visibility rules.
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
-
withAttachments(
{List< Attachment> ? attachments, List<StreamAttachment> ? attachmentUploads}) → FeedAddActivityRequest - Creates a copy of this request with updated attachments and uploads.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited