copyWith method

VideoViewParameters copyWith({
  1. double? width,
  2. double? height,
  3. BoxFit? fit,
  4. Color? fill,
  5. Alignment? alignment,
  6. double? aspectRatio,
  7. FilterQuality? filterQuality,
  8. dynamic controls,
  9. bool? pauseUponEnteringBackgroundMode,
  10. bool? resumeUponEnteringForegroundMode,
  11. SubtitleViewConfiguration? subtitleViewConfiguration,
  12. Future<void> onEnterFullscreen()?,
  13. Future<void> onExitFullscreen()?,
})

Implementation

VideoViewParameters copyWith({
  double? width,
  double? height,
  BoxFit? fit,
  Color? fill,
  Alignment? alignment,
  double? aspectRatio,
  FilterQuality? filterQuality,
  /* VideoControlsBuilder? */ dynamic controls,
  bool? pauseUponEnteringBackgroundMode,
  bool? resumeUponEnteringForegroundMode,
  SubtitleViewConfiguration? subtitleViewConfiguration,
  Future<void> Function()? onEnterFullscreen,
  Future<void> Function()? onExitFullscreen,
}) {
  return VideoViewParameters(
    width: width ?? this.width,
    height: height ?? this.height,
    fit: fit ?? this.fit,
    fill: fill ?? this.fill,
    alignment: alignment ?? this.alignment,
    aspectRatio: aspectRatio ?? this.aspectRatio,
    filterQuality: filterQuality ?? this.filterQuality,
    controls: controls ?? this.controls,
    subtitleViewConfiguration:
        subtitleViewConfiguration ?? this.subtitleViewConfiguration,
  );
}