VideoPlayerScreen constructor

const VideoPlayerScreen({
  1. Key? key,
  2. required ThreeSpeakVideo? item,
  3. void onTapComment(
    1. String,
    2. String
    )?,
  4. void onTapUpvote(
    1. String,
    2. String
    )?,
  5. void onTapShare(
    1. String,
    2. String
    )?,
  6. void onTapBookmark(
    1. String,
    2. String
    )?,
  7. required VoidCallback onTapBackButton,
  8. void onTapAuthor(
    1. String,
    2. String
    )?,
  9. void onTapInfo(
    1. String,
    2. String
    )?,
  10. String? author,
  11. String? permlink,
  12. required bool shouldShowBackButton,
  13. required ThreeSpeakVideoFeed videoFeed(),
})

Implementation

const VideoPlayerScreen({
  super.key,
  required this.item,
  this.onTapComment,
  this.onTapUpvote,
  this.onTapShare,
  this.onTapBookmark,
  required this.onTapBackButton,
  this.onTapAuthor,
  this.onTapInfo,
  this.author,
  this.permlink,
  required this.shouldShowBackButton,
  required this.videoFeed,
}) : assert(
       (item != null && author == null && permlink == null) ||
           (item == null && author != null && permlink != null),
       'You must either provide a post OR both author and permlink',
     );