copyWith method
VideoViewParameters
copyWith({
- double? width,
- double? height,
- BoxFit? fit,
- Color? fill,
- Alignment? alignment,
- double? aspectRatio,
- FilterQuality? filterQuality,
- dynamic controls,
- bool? pauseUponEnteringBackgroundMode,
- bool? resumeUponEnteringForegroundMode,
- SubtitleViewConfiguration? subtitleViewConfiguration,
- Future<
void> onEnterFullscreen()?, - 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,
);
}