VideoPlayerScreen constructor
const
VideoPlayerScreen({
- Key? key,
- required ThreeSpeakVideo? item,
- void onTapComment()?,
- void onTapUpvote()?,
- void onTapBookmark()?,
- required VoidCallback onTapBackButton,
- void onTapAuthor()?,
- void onTapInfo()?,
- String? author,
- String? permlink,
- required bool shouldShowBackButton,
- 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',
);