PostCard constructor
const
PostCard({
- Key? key,
- required String userName,
- required String timeAgo,
- String? userAvatarUrl,
- String? content,
- List<
String> imageUrls = const [], - int likeCount = 0,
- int commentCount = 0,
- VoidCallback? onLike,
- VoidCallback? onComment,
- 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,
});