copyWith method

MaterialVideoControlsThemeData copyWith({
  1. bool? displaySeekBar,
  2. bool? automaticallyImplySkipNextButton,
  3. bool? automaticallyImplySkipPreviousButton,
  4. bool? volumeGesture,
  5. bool? brightnessGesture,
  6. bool? seekOnDoubleTap,
  7. bool? visibleOnMount,
  8. Color? backdropColor,
  9. Duration? controlsHoverDuration,
  10. Duration? controlsTransitionDuration,
  11. Widget bufferingIndicatorBuilder(
    1. BuildContext
    )?,
  12. Widget volumeIndicatorBuilder(
    1. BuildContext,
    2. double
    )?,
  13. Widget brightnessIndicatorBuilder(
    1. BuildContext,
    2. double
    )?,
  14. List<Widget>? primaryButtonBar,
  15. List<Widget>? topButtonBar,
  16. EdgeInsets? topButtonBarMargin,
  17. List<Widget>? bottomButtonBar,
  18. EdgeInsets? bottomButtonBarMargin,
  19. double? buttonBarHeight,
  20. double? buttonBarButtonSize,
  21. Color? buttonBarButtonColor,
  22. EdgeInsets? seekBarMargin,
  23. double? seekBarHeight,
  24. double? seekBarContainerHeight,
  25. Color? seekBarColor,
  26. Color? seekBarPositionColor,
  27. Color? seekBarBufferColor,
  28. double? seekBarThumbSize,
  29. Color? seekBarThumbColor,
  30. Alignment? seekBarAlignment,
  31. 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? seekOnDoubleTap,
  bool? visibleOnMount,
  Color? backdropColor,
  Duration? controlsHoverDuration,
  Duration? controlsTransitionDuration,
  Widget Function(BuildContext)? bufferingIndicatorBuilder,
  Widget Function(BuildContext, double)? volumeIndicatorBuilder,
  Widget Function(BuildContext, double)? brightnessIndicatorBuilder,
  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,
    seekOnDoubleTap: seekOnDoubleTap ?? this.seekOnDoubleTap,
    visibleOnMount: visibleOnMount ?? this.visibleOnMount,
    backdropColor: backdropColor ?? this.backdropColor,
    controlsHoverDuration:
        controlsHoverDuration ?? this.controlsHoverDuration,
    controlsTransitionDuration:
        controlsTransitionDuration ?? this.controlsTransitionDuration,
    bufferingIndicatorBuilder:
        bufferingIndicatorBuilder ?? this.bufferingIndicatorBuilder,
    volumeIndicatorBuilder:
        volumeIndicatorBuilder ?? this.volumeIndicatorBuilder,
    brightnessIndicatorBuilder:
        brightnessIndicatorBuilder ?? this.brightnessIndicatorBuilder,
    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,
  );
}