showVideoOnly method

Future<void> showVideoOnly({
  1. required BuildContext context,
  2. required String videoUrl,
  3. required String minVideoUrl,
  4. required String userName,
  5. required String companyTitle,
  6. String? avatarUrl,
  7. Function? onExpand,
  8. Function? onVideoEnd,
  9. Function? onSkip,
})

Implementation

Future<void> showVideoOnly({
  required BuildContext context,
  required String videoUrl,
  required String minVideoUrl,
  required String userName,
  required String companyTitle,
  String? avatarUrl,
  Function? onExpand,
  Function? onVideoEnd,
  Function? onSkip,
}) async {
  return showVideoAsset(
    context: context,
    videoAsset: videoUrl,
    userName: userName,
    companyTitle: companyTitle,
    avatarUrl: avatarUrl,
    animateOnVideoEnd: true,
    onVideoEndAction: () {
      _overlayHelper.popHelper();
      if (onVideoEnd != null) {
        onVideoEnd();
      }
    },
    onSkip: onSkip,
    onClose: onVideoEnd,
    onExpand: onExpand,
  );
}