FeedPost constructor
FeedPost({
- required String id,
- required String tenantId,
- String? title,
- String? fromUserId,
- String? fromUserDisplayName,
- String? fromUserAvatar,
- String? fromIpHash,
- List<
String> tags = const [], - double? weight,
- Map<
String, String> meta = const {}, - String? contentHTML,
- List<
FeedPostMediaItem> media = const [], - List<
FeedPostLink> links = const [], - required DateTime createdAt,
- Map<
String, int> reacts = const {}, - int? commentCount,
Returns a new FeedPost instance.
Implementation
FeedPost({
required this.id,
required this.tenantId,
this.title,
this.fromUserId,
this.fromUserDisplayName,
this.fromUserAvatar,
this.fromIpHash,
this.tags = const [],
this.weight,
this.meta = const {},
this.contentHTML,
this.media = const [],
this.links = const [],
required this.createdAt,
this.reacts = const {},
this.commentCount,
});