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. bool? visibleOnMount,
  13. bool? speedUpOnLongPress,
  14. double? speedUpFactor,
  15. double? verticalGestureSensitivity,
  16. double? horizontalGestureSensitivity,
  17. Color? backdropColor,
  18. Duration? controlsHoverDuration,
  19. Duration? controlsTransitionDuration,
  20. Widget bufferingIndicatorBuilder(
    1. BuildContext
    )?,
  21. Widget volumeIndicatorBuilder(
    1. BuildContext,
    2. double
    )?,
  22. Widget brightnessIndicatorBuilder(
    1. BuildContext,
    2. double
    )?,
  23. Widget seekIndicatorBuilder(
    1. BuildContext,
    2. Duration
    )?,
  24. Widget speedUpIndicatorBuilder(
    1. BuildContext,
    2. double
    )?,
  25. List<Widget>? primaryButtonBar,
  26. List<Widget>? topButtonBar,
  27. EdgeInsets? topButtonBarMargin,
  28. List<Widget>? bottomButtonBar,
  29. EdgeInsets? bottomButtonBarMargin,
  30. double? buttonBarHeight,
  31. double? buttonBarButtonSize,
  32. Color? buttonBarButtonColor,
  33. EdgeInsets? seekBarMargin,
  34. double? seekBarHeight,
  35. double? seekBarContainerHeight,
  36. Color? seekBarColor,
  37. Color? seekBarPositionColor,
  38. Color? seekBarBufferColor,
  39. double? seekBarThumbSize,
  40. Color? seekBarThumbColor,
  41. Alignment? seekBarAlignment,
  42. 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,
  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,
    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,
  );
}