copyWith method

ChewieAudioController copyWith({
  1. VideoPlayerController? videoPlayerController,
  2. OptionsTranslation? optionsTranslation,
  3. double? aspectRatio,
  4. bool? autoInitialize,
  5. bool? autoPlay,
  6. bool? draggableProgressBar,
  7. Duration? startAt,
  8. bool? looping,
  9. ChewieProgressColors? cupertinoProgressColors,
  10. ChewieProgressColors? materialProgressColors,
  11. Widget? placeholder,
  12. Widget? overlay,
  13. bool? showControlsOnInitialize,
  14. bool? showOptions,
  15. Future<void> optionsBuilder(
    1. BuildContext,
    2. List<OptionItem>
    )?,
  16. List<OptionItem> additionalOptions(
    1. BuildContext
    )?,
  17. bool? showControls,
  18. TransformationController? transformationController,
  19. bool? zoomAndPan,
  20. double? maxScale,
  21. Subtitles? subtitle,
  22. Widget subtitleBuilder(
    1. BuildContext,
    2. dynamic
    )?,
  23. Widget? customControls,
  24. Widget errorBuilder(
    1. BuildContext,
    2. String
    )?,
  25. bool? allowedScreenSleep,
  26. bool? isLive,
  27. bool? allowFullScreen,
  28. bool? allowMuting,
  29. bool? allowPlaybackSpeedChanging,
  30. bool? useRootNavigator,
  31. Duration? hideControlsTimer,
  32. EdgeInsets? controlsSafeAreaMinimum,
  33. List<double>? playbackSpeeds,
  34. List<SystemUiOverlay>? systemOverlaysOnEnterFullScreen,
  35. List<DeviceOrientation>? deviceOrientationsOnEnterFullScreen,
  36. List<SystemUiOverlay>? systemOverlaysAfterFullScreen,
  37. List<DeviceOrientation>? deviceOrientationsAfterFullScreen,
  38. Duration? progressIndicatorDelay,
  39. Widget routePageBuilder(
    1. BuildContext,
    2. Animation<double>,
    3. Animation<double>,
    4. ChewieAudioControllerProvider,
    )?,
})

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,
  );
}