copyWith method

MaterialVideoControlsThemeData copyWith({
  1. bool? displaySeekBar,
  2. bool? volumeGesture,
  3. bool? brightnessGesture,
  4. bool? seekGesture,
  5. bool? gesturesEnabledWhileControlsVisible,
  6. bool? seekOnDoubleTap,
  7. bool? seekOnDoubleTapEnabledWhileControlsVisible,
  8. List<int>? seekOnDoubleTapLayoutTapsRatios,
  9. List<int>? seekOnDoubleTapLayoutWidgetRatios,
  10. bool? visibleOnMount,
  11. bool? speedUpOnLongPress,
  12. double? speedUpFactor,
  13. double? verticalGestureSensitivity,
  14. double? horizontalGestureSensitivity,
  15. Color? backdropColor,
  16. Duration? controlsHoverDuration,
  17. Duration? controlsTransitionDuration,
  18. Widget bufferingIndicatorBuilder(
    1. BuildContext
    )?,
  19. Widget volumeIndicatorBuilder(
    1. BuildContext,
    2. double
    )?,
  20. Widget brightnessIndicatorBuilder(
    1. BuildContext,
    2. double
    )?,
  21. Widget seekIndicatorBuilder(
    1. BuildContext,
    2. Duration
    )?,
  22. Widget speedUpIndicatorBuilder(
    1. BuildContext,
    2. double
    )?,
  23. List<Widget>? primaryButtonBar,
  24. List<Widget>? topButtonBar,
  25. EdgeInsets? topButtonBarMargin,
  26. List<Widget>? bottomButtonBar,
  27. EdgeInsets? bottomButtonBarMargin,
  28. double? buttonBarHeight,
  29. double? buttonBarButtonSize,
  30. Color? buttonBarButtonColor,
  31. EdgeInsets? seekBarMargin,
  32. double? seekBarHeight,
  33. double? seekBarContainerHeight,
  34. Color? seekBarColor,
  35. Color? seekBarPositionColor,
  36. Color? seekBarBufferColor,
  37. double? seekBarThumbSize,
  38. Color? seekBarThumbColor,
  39. Alignment? seekBarAlignment,
  40. bool? shiftSubtitlesOnControlsVisibilityChange,
})

Creates a copy of this MaterialVideoControlsThemeData with the given fields replaced by the non-null parameter values.

Implementation

MaterialVideoControlsThemeData copyWith({
  bool? displaySeekBar,
  bool? volumeGesture,
  bool? brightnessGesture,
  bool? seekGesture,
  bool? gesturesEnabledWhileControlsVisible,
  bool? seekOnDoubleTap,
  bool? seekOnDoubleTapEnabledWhileControlsVisible,
  List<int>? seekOnDoubleTapLayoutTapsRatios,
  List<int>? seekOnDoubleTapLayoutWidgetRatios,
  bool? visibleOnMount,
  bool? speedUpOnLongPress,
  double? speedUpFactor,
  double? verticalGestureSensitivity,
  double? horizontalGestureSensitivity,
  Color? backdropColor,
  Duration? controlsHoverDuration,
  Duration? controlsTransitionDuration,
  Widget Function(BuildContext)? bufferingIndicatorBuilder,
  Widget Function(BuildContext, double)? volumeIndicatorBuilder,
  Widget Function(BuildContext, double)? brightnessIndicatorBuilder,
  Widget Function(BuildContext, Duration)? seekIndicatorBuilder,
  Widget Function(BuildContext, double)? speedUpIndicatorBuilder,
  List<Widget>? primaryButtonBar,
  List<Widget>? topButtonBar,
  EdgeInsets? topButtonBarMargin,
  List<Widget>? bottomButtonBar,
  EdgeInsets? bottomButtonBarMargin,
  double? buttonBarHeight,
  double? buttonBarButtonSize,
  Color? buttonBarButtonColor,
  EdgeInsets? seekBarMargin,
  double? seekBarHeight,
  double? seekBarContainerHeight,
  Color? seekBarColor,
  Color? seekBarPositionColor,
  Color? seekBarBufferColor,
  double? seekBarThumbSize,
  Color? seekBarThumbColor,
  Alignment? seekBarAlignment,
  bool? shiftSubtitlesOnControlsVisibilityChange,
}) {
  return MaterialVideoControlsThemeData(
    displaySeekBar: displaySeekBar ?? this.displaySeekBar,
    volumeGesture: volumeGesture ?? this.volumeGesture,
    brightnessGesture: brightnessGesture ?? this.brightnessGesture,
    seekGesture: seekGesture ?? this.seekGesture,
    gesturesEnabledWhileControlsVisible:
        gesturesEnabledWhileControlsVisible ??
            this.gesturesEnabledWhileControlsVisible,
    seekOnDoubleTap: seekOnDoubleTap ?? this.seekOnDoubleTap,
    seekOnDoubleTapEnabledWhileControlsVisible:
        seekOnDoubleTapEnabledWhileControlsVisible ??
            this.seekOnDoubleTapEnabledWhileControlsVisible,
    seekOnDoubleTapLayoutTapsRatios: seekOnDoubleTapLayoutTapsRatios ??
        this.seekOnDoubleTapLayoutTapsRatios,
    seekOnDoubleTapLayoutWidgetRatios: seekOnDoubleTapLayoutWidgetRatios ??
        this.seekOnDoubleTapLayoutWidgetRatios,
    visibleOnMount: visibleOnMount ?? this.visibleOnMount,
    speedUpOnLongPress: speedUpOnLongPress ?? this.speedUpOnLongPress,
    speedUpFactor: speedUpFactor ?? this.speedUpFactor,
    verticalGestureSensitivity:
        verticalGestureSensitivity ?? this.verticalGestureSensitivity,
    horizontalGestureSensitivity:
        horizontalGestureSensitivity ?? this.horizontalGestureSensitivity,
    backdropColor: backdropColor ?? this.backdropColor,
    controlsHoverDuration:
        controlsHoverDuration ?? this.controlsHoverDuration,
    controlsTransitionDuration:
        controlsTransitionDuration ?? this.controlsTransitionDuration,
    bufferingIndicatorBuilder:
        bufferingIndicatorBuilder ?? this.bufferingIndicatorBuilder,
    volumeIndicatorBuilder:
        volumeIndicatorBuilder ?? this.volumeIndicatorBuilder,
    brightnessIndicatorBuilder:
        brightnessIndicatorBuilder ?? this.brightnessIndicatorBuilder,
    seekIndicatorBuilder: seekIndicatorBuilder ?? this.seekIndicatorBuilder,
    speedUpIndicatorBuilder:
        speedUpIndicatorBuilder ?? this.speedUpIndicatorBuilder,
    primaryButtonBar: primaryButtonBar ?? this.primaryButtonBar,
    topButtonBar: topButtonBar ?? this.topButtonBar,
    topButtonBarMargin: topButtonBarMargin ?? this.topButtonBarMargin,
    bottomButtonBar: bottomButtonBar ?? this.bottomButtonBar,
    bottomButtonBarMargin:
        bottomButtonBarMargin ?? this.bottomButtonBarMargin,
    buttonBarHeight: buttonBarHeight ?? this.buttonBarHeight,
    buttonBarButtonSize: buttonBarButtonSize ?? this.buttonBarButtonSize,
    buttonBarButtonColor: buttonBarButtonColor ?? this.buttonBarButtonColor,
    seekBarMargin: seekBarMargin ?? this.seekBarMargin,
    seekBarHeight: seekBarHeight ?? this.seekBarHeight,
    seekBarContainerHeight:
        seekBarContainerHeight ?? this.seekBarContainerHeight,
    seekBarColor: seekBarColor ?? this.seekBarColor,
    seekBarPositionColor: seekBarPositionColor ?? this.seekBarPositionColor,
    seekBarBufferColor: seekBarBufferColor ?? this.seekBarBufferColor,
    seekBarThumbSize: seekBarThumbSize ?? this.seekBarThumbSize,
    seekBarThumbColor: seekBarThumbColor ?? this.seekBarThumbColor,
    seekBarAlignment: seekBarAlignment ?? this.seekBarAlignment,
    shiftSubtitlesOnControlsVisibilityChange:
        shiftSubtitlesOnControlsVisibilityChange ??
            this.shiftSubtitlesOnControlsVisibilityChange,
  );
}