PlayerComponent constructor

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

Implementation

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