SuperPlayerComponent constructor

const SuperPlayerComponent({
  1. Key? key,
  2. required String url,
  3. VoidCallback? onToggleFullscreen,
  4. VoidCallback? onSwapTap,
  5. bool controlsEnabled = true,
  6. void onProgress(
    1. int positionSec
    )?,
  7. void onControllerReady(
    1. VideoPlayerController controller
    )?,
  8. void onControllerDispose()?,
  9. bool isControllerDisposedExternally()?,
  10. VoidCallback? onEnded,
  11. void onError(
    1. String message
    )?,
  12. bool offlineMode = false,
})

Implementation

const SuperPlayerComponent({
  super.key,
  required this.url,
  this.onToggleFullscreen,
  this.onSwapTap,
  this.controlsEnabled = true,
  this.onProgress,
  this.onControllerReady,
  this.onControllerDispose,
  this.isControllerDisposedExternally,
  this.onEnded,
  this.onError,
  this.offlineMode = false,
});