VideoInfo constructor

const VideoInfo({
  1. Key? key,
  2. required String title,
  3. required String author,
  4. required String permlink,
  5. required DateTime? createdAt,
  6. required VideoFeedGridItemViewModel video,
  7. required Discussion? postInfo,
  8. required String? currentUser,
  9. required bool isContentVoted,
  10. void onTapComment(
    1. String,
    2. String
    )?,
  11. void onTapUpvote(
    1. String,
    2. String
    )?,
  12. void onTapShare(
    1. String,
    2. String
    )?,
  13. void onTapBookmark(
    1. String,
    2. String
    )?,
  14. void onTapAuthor(
    1. String,
    2. String
    )?,
  15. void onTapInfo(
    1. String,
    2. String
    )?,
})

Implementation

const VideoInfo({
  super.key,
  required this.title,
  required this.author,
  required this.permlink,
  required this.createdAt,
  required this.video,
  required this.postInfo,
  required this.currentUser,
  required this.isContentVoted,
  this.onTapComment,
  this.onTapUpvote,
  this.onTapShare,
  this.onTapBookmark,
  this.onTapAuthor,
  this.onTapInfo,
});