AdaptiveVideoPlayer constructor

const AdaptiveVideoPlayer({
  1. Key? key,
  2. required int index,
  3. required ShortsPlayerController controller,
  4. VideoFit fit = VideoFit.contain,
  5. Color backgroundColor = Colors.black,
  6. Widget? loadingWidget,
  7. Widget? errorWidget,
  8. bool showDebugInfo = false,
  9. String? thumbnailUrl,
  10. dynamic onDimensionsChanged(
    1. int index,
    2. double width,
    3. double height,
    4. double aspectRatio,
    )?,
  11. dynamic onStateChanged(
    1. int index,
    2. String state
    )?,
})

Implementation

const AdaptiveVideoPlayer({
  super.key,
  required this.index,
  required this.controller,
  this.fit = VideoFit.contain,
  this.backgroundColor = Colors.black,
  this.loadingWidget,
  this.errorWidget,
  this.showDebugInfo = false,
  this.thumbnailUrl,
  this.onDimensionsChanged,
  this.onStateChanged,
});