copyWith method

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