copyWith method
FlexPlayerConfiguration
copyWith({
- bool? isFullScreen,
- bool? controlsVisible,
- Orientation? orientationonFullScreen,
- String? thumbnail,
- double? aspectRatio,
- bool? autoDispose,
- bool? autoPlay,
- bool? loop,
- bool? showControls,
- double? volume,
- double? playbackSpeed,
- Duration? position,
- bool? isPlaying,
- bool? autoQuality,
- Widget? errorWidet,
- bool? showControlsOnError,
Implementation
FlexPlayerConfiguration copyWith({
bool? isFullScreen,
bool? controlsVisible,
Orientation? orientationonFullScreen,
String? thumbnail,
double? aspectRatio,
bool? autoDispose,
bool? autoPlay,
bool? loop,
bool? showControls,
double? volume,
double? playbackSpeed,
Duration? position,
bool? isPlaying,
bool? autoQuality,
Widget? errorWidet,
bool? showControlsOnError,
}) {
return FlexPlayerConfiguration(
isFullScreen: isFullScreen ?? this.isFullScreen,
controlsVisible: controlsVisible ?? this.controlsVisible,
orientationonFullScreen:
orientationonFullScreen ?? this.orientationonFullScreen,
thumbnail: thumbnail ?? this.thumbnail,
aspectRatio: aspectRatio ?? this.aspectRatio,
autoDispose: autoDispose ?? this.autoDispose,
autoPlay: autoPlay ?? this.autoPlay,
loop: loop ?? this.loop,
showControls: showControls ?? this.showControls,
volume: volume ?? this.volume,
playbackSpeed: playbackSpeed ?? this.playbackSpeed,
position: position ?? this.position,
isPlaying: isPlaying ?? this.isPlaying,
autoQuality: autoQuality ?? this.autoQuality,
errorWidget: errorWidet ?? errorWidget,
showControlsOnError: showControlsOnError ?? this.showControlsOnError,
);
}