copyWith method

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

Implementation

FlexiController copyWith({
  bool? isBrignessOptionDisplay,
  bool? isVolumnOptionDisplay,

  VideoPlayerController? videoPlayerController,
  OptionsTranslation? optionsTranslation,
  double? aspectRatio,
  bool? autoInitialize,
  bool? autoPlay,
  Duration? startAt,
  bool? looping,
  bool? fullScreenByDefault,
  FlexiProgressColors? cupertinoProgressColors,
  FlexiProgressColors? 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,
  List<double>? playbackSpeeds,
  List<SystemUiOverlay>? systemOverlaysOnEnterFullScreen,
  List<DeviceOrientation>? deviceOrientationsOnEnterFullScreen,
  List<SystemUiOverlay>? systemOverlaysAfterFullScreen,
  List<DeviceOrientation>? deviceOrientationsAfterFullScreen,
  Duration? progressIndicatorDelay,
  Widget Function(
    BuildContext,
    Animation<double>,
    Animation<double>,
    FlexiControllerProvider,
  )?
      routePageBuilder,
}) {
  return FlexiController(

     isBrignessOptionDisplay: isBrignessOptionDisplay ?? this.isBrignessOptionDisplay,
    isVolumnOptionDisplay : isVolumnOptionDisplay ?? this.isVolumnOptionDisplay,


    videoPlayerController:
        videoPlayerController ?? this.videoPlayerController,
    optionsTranslation: optionsTranslation ?? this.optionsTranslation,
    aspectRatio: aspectRatio ?? this.aspectRatio,
    autoInitialize: autoInitialize ?? this.autoInitialize,
    autoPlay: autoPlay ?? this.autoPlay,
    startAt: startAt ?? this.startAt,
    looping: looping ?? this.looping,
    fullScreenByDefault: fullScreenByDefault ?? this.fullScreenByDefault,
    cupertinoProgressColors:
        cupertinoProgressColors ?? this.cupertinoProgressColors,
    materialProgressColors:
        materialProgressColors ?? this.materialProgressColors,
    placeholder: placeholder ?? this.placeholder,
    overlay: overlay ?? this.overlay,
    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,
    allowedScreenSleep: allowedScreenSleep ?? this.allowedScreenSleep,
    isLive: isLive ?? this.isLive,
    allowFullScreen: allowFullScreen ?? this.allowFullScreen,
    allowMuting: allowMuting ?? this.allowMuting,
    allowPlaybackSpeedChanging:
        allowPlaybackSpeedChanging ?? this.allowPlaybackSpeedChanging,
    useRootNavigator: useRootNavigator ?? this.useRootNavigator,
    playbackSpeeds: playbackSpeeds ?? this.playbackSpeeds,
    systemOverlaysOnEnterFullScreen: systemOverlaysOnEnterFullScreen ??
        this.systemOverlaysOnEnterFullScreen,
    deviceOrientationsOnEnterFullScreen:
        deviceOrientationsOnEnterFullScreen ??
            this.deviceOrientationsOnEnterFullScreen,
    systemOverlaysAfterFullScreen:
        systemOverlaysAfterFullScreen ?? this.systemOverlaysAfterFullScreen,
    deviceOrientationsAfterFullScreen: deviceOrientationsAfterFullScreen ??
        this.deviceOrientationsAfterFullScreen,
    routePageBuilder: routePageBuilder ?? this.routePageBuilder,
    hideControlsTimer: hideControlsTimer ?? this.hideControlsTimer,
    progressIndicatorDelay:
        progressIndicatorDelay ?? this.progressIndicatorDelay,
  );
}