EmbeddedCard.fromFeed constructor
EmbeddedCard.fromFeed(})
Implementation
factory EmbeddedCard.fromFeed(
final bsky.FeedView feed, {
String service = 'bsky.app',
Color? backgroundColor,
bool darkMode = false,
}) =>
EmbeddedCard._(
text: feed.post.record.text,
handle: feed.post.author.handle,
displayName: feed.post.author.displayName!,
avatar: feed.post.author.avatar!,
replyCount: feed.post.replyCount,
repostCount: feed.post.repostCount,
likeCount: feed.post.likeCount,
service: service,
postUri: feed.post.uri,
createdAt: feed.post.indexedAt,
reason: feed.reason,
backgroundColor: backgroundColor,
darkMode: darkMode,
);