copyWith method
ChewieAudioController
copyWith({
- VideoPlayerController? videoPlayerController,
- OptionsTranslation? optionsTranslation,
- double? aspectRatio,
- bool? autoInitialize,
- bool? autoPlay,
- bool? draggableProgressBar,
- Duration? startAt,
- bool? looping,
- ChewieProgressColors? cupertinoProgressColors,
- ChewieProgressColors? materialProgressColors,
- Widget? placeholder,
- Widget? overlay,
- bool? showControlsOnInitialize,
- bool? showOptions,
- Future<
void> optionsBuilder()?, - List<
OptionItem> additionalOptions()?, - bool? showControls,
- TransformationController? transformationController,
- bool? zoomAndPan,
- double? maxScale,
- Subtitles? subtitle,
- Widget subtitleBuilder(
- BuildContext,
- dynamic
- Widget? customControls,
- Widget errorBuilder()?,
- bool? allowedScreenSleep,
- bool? isLive,
- bool? allowFullScreen,
- bool? allowMuting,
- bool? allowPlaybackSpeedChanging,
- Duration? hideControlsTimer,
- EdgeInsets? controlsSafeAreaMinimum,
- List<
double> ? playbackSpeeds, - List<
SystemUiOverlay> ? systemOverlaysOnEnterFullScreen, - List<
DeviceOrientation> ? deviceOrientationsOnEnterFullScreen, - List<
SystemUiOverlay> ? systemOverlaysAfterFullScreen, - List<
DeviceOrientation> ? deviceOrientationsAfterFullScreen, - Duration? progressIndicatorDelay,
- Widget routePageBuilder()?,
Implementation
ChewieAudioController copyWith({
VideoPlayerController? videoPlayerController,
OptionsTranslation? optionsTranslation,
double? aspectRatio,
bool? autoInitialize,
bool? autoPlay,
bool? draggableProgressBar,
Duration? startAt,
bool? looping,
ChewieProgressColors? cupertinoProgressColors,
ChewieProgressColors? materialProgressColors,
Widget? placeholder,
Widget? overlay,
bool? showControlsOnInitialize,
bool? showOptions,
Future<void> Function(BuildContext, List<OptionItem>)? optionsBuilder,
List<OptionItem> Function(BuildContext)? additionalOptions,
bool? showControls,
TransformationController? transformationController,
bool? zoomAndPan,
double? maxScale,
Subtitles? subtitle,
Widget Function(BuildContext, dynamic)? subtitleBuilder,
Widget? customControls,
Widget Function(BuildContext, String)? errorBuilder,
bool? allowedScreenSleep,
bool? isLive,
bool? allowFullScreen,
bool? allowMuting,
bool? allowPlaybackSpeedChanging,
bool? useRootNavigator,
Duration? hideControlsTimer,
EdgeInsets? controlsSafeAreaMinimum,
List<double>? playbackSpeeds,
List<SystemUiOverlay>? systemOverlaysOnEnterFullScreen,
List<DeviceOrientation>? deviceOrientationsOnEnterFullScreen,
List<SystemUiOverlay>? systemOverlaysAfterFullScreen,
List<DeviceOrientation>? deviceOrientationsAfterFullScreen,
Duration? progressIndicatorDelay,
Widget Function(
BuildContext,
Animation<double>,
Animation<double>,
ChewieAudioControllerProvider,
)? routePageBuilder,
}) {
return ChewieAudioController(
draggableProgressBar: draggableProgressBar ?? this.draggableProgressBar,
videoPlayerController:
videoPlayerController ?? this.videoPlayerController,
optionsTranslation: optionsTranslation ?? this.optionsTranslation,
autoInitialize: autoInitialize ?? this.autoInitialize,
autoPlay: autoPlay ?? this.autoPlay,
startAt: startAt ?? this.startAt,
looping: looping ?? this.looping,
cupertinoProgressColors:
cupertinoProgressColors ?? this.cupertinoProgressColors,
materialProgressColors:
materialProgressColors ?? this.materialProgressColors,
showControlsOnInitialize:
showControlsOnInitialize ?? this.showControlsOnInitialize,
showOptions: showOptions ?? this.showOptions,
optionsBuilder: optionsBuilder ?? this.optionsBuilder,
additionalOptions: additionalOptions ?? this.additionalOptions,
showControls: showControls ?? this.showControls,
subtitle: subtitle ?? this.subtitle,
subtitleBuilder: subtitleBuilder ?? this.subtitleBuilder,
customControls: customControls ?? this.customControls,
errorBuilder: errorBuilder ?? this.errorBuilder,
isLive: isLive ?? this.isLive,
allowMuting: allowMuting ?? this.allowMuting,
allowPlaybackSpeedChanging:
allowPlaybackSpeedChanging ?? this.allowPlaybackSpeedChanging,
playbackSpeeds: playbackSpeeds ?? this.playbackSpeeds,
progressIndicatorDelay:
progressIndicatorDelay ?? this.progressIndicatorDelay,
);
}