UVideoControls constructor

const UVideoControls({
  1. required UMediaController controller,
  2. Key? key,
  3. bool visible = true,
  4. String? title,
  5. List<UVideoMarker> markers = const <UVideoMarker>[],
  6. Color? accentColor,
  7. bool showBack = false,
  8. bool showFullscreen = true,
  9. bool showPip = true,
  10. bool showSpeed = true,
  11. bool showQuality = true,
  12. bool showSubtitles = true,
  13. bool showQueue = false,
  14. bool showLock = true,
  15. bool isFullscreen = false,
  16. bool locked = false,
  17. VoidCallback? onBack,
  18. VoidCallback? onToggleFullscreen,
  19. VoidCallback? onToggleLock,
  20. VoidCallback? onOpenSettings,
  21. VoidCallback? onOpenQueue,
  22. VoidCallback? onScrubStart,
  23. VoidCallback? onScrubEnd,
  24. Widget thumbnailBuilder(
    1. BuildContext context,
    2. Duration position
    )?,
})

Implementation

const UVideoControls({
  required this.controller,
  super.key,
  this.visible = true,
  this.title,
  this.markers = const <UVideoMarker>[],
  this.accentColor,
  this.showBack = false,
  this.showFullscreen = true,
  this.showPip = true,
  this.showSpeed = true,
  this.showQuality = true,
  this.showSubtitles = true,
  this.showQueue = false,
  this.showLock = true,
  this.isFullscreen = false,
  this.locked = false,
  this.onBack,
  this.onToggleFullscreen,
  this.onToggleLock,
  this.onOpenSettings,
  this.onOpenQueue,
  this.onScrubStart,
  this.onScrubEnd,
  this.thumbnailBuilder,
});