PostCard constructor

const PostCard({
  1. Key? key,
  2. required String userName,
  3. required String timeAgo,
  4. String? userAvatarUrl,
  5. String? content,
  6. List<String> imageUrls = const [],
  7. int likeCount = 0,
  8. int commentCount = 0,
  9. int shareCount = 0,
  10. VoidCallback? onLike,
  11. VoidCallback? onComment,
  12. VoidCallback? onShare,
  13. VoidCallback? onMoreOptions,
})

Implementation

const PostCard({
  super.key,
  required this.userName,
  required this.timeAgo,
  this.userAvatarUrl,
  this.content,
  this.imageUrls = const [],
  this.likeCount = 0,
  this.commentCount = 0,
  this.shareCount = 0,
  this.onLike,
  this.onComment,
  this.onShare,
  this.onMoreOptions,
});