EmbeddedCard.fromFeed constructor

EmbeddedCard.fromFeed(
  1. FeedView feed, {
  2. String service = 'bsky.app',
  3. Color? backgroundColor,
  4. bool darkMode = false,
})

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,
    );