copyWith method

MaterialDesktopVideoControlsThemeData copyWith({
  1. bool? displaySeekBar,
  2. bool? automaticallyImplySkipNextButton,
  3. bool? automaticallyImplySkipPreviousButton,
  4. bool? toggleFullscreenOnDoublePress,
  5. bool? modifyVolumeOnScroll,
  6. Map<ShortcutActivator, VoidCallback>? keyboardShortcuts,
  7. bool? visibleOnMount,
  8. Duration? controlsHoverDuration,
  9. Duration? controlsTransitionDuration,
  10. Widget bufferingIndicatorBuilder(
    1. BuildContext
    )?,
  11. List<Widget>? topButtonBar,
  12. EdgeInsets? topButtonBarMargin,
  13. List<Widget>? bottomButtonBar,
  14. EdgeInsets? bottomButtonBarMargin,
  15. double? buttonBarHeight,
  16. double? buttonBarButtonSize,
  17. Color? buttonBarButtonColor,
  18. Duration? seekBarTransitionDuration,
  19. Duration? seekBarThumbTransitionDuration,
  20. EdgeInsets? seekBarMargin,
  21. double? seekBarHeight,
  22. double? seekBarHoverHeight,
  23. double? seekBarContainerHeight,
  24. Color? seekBarColor,
  25. Color? seekBarHoverColor,
  26. Color? seekBarPositionColor,
  27. Color? seekBarBufferColor,
  28. double? seekBarThumbSize,
  29. Color? seekBarThumbColor,
  30. Color? volumeBarColor,
  31. Color? volumeBarActiveColor,
  32. double? volumeBarThumbSize,
  33. Color? volumeBarThumbColor,
  34. Duration? volumeBarTransitionDuration,
  35. bool? shiftSubtitlesOnControlsVisibilityChange,
})

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

Implementation

MaterialDesktopVideoControlsThemeData copyWith({
  bool? displaySeekBar,
  bool? automaticallyImplySkipNextButton,
  bool? automaticallyImplySkipPreviousButton,
  bool? toggleFullscreenOnDoublePress,
  bool? modifyVolumeOnScroll,
  Map<ShortcutActivator, VoidCallback>? keyboardShortcuts,
  bool? visibleOnMount,
  Duration? controlsHoverDuration,
  Duration? controlsTransitionDuration,
  Widget Function(BuildContext)? bufferingIndicatorBuilder,
  List<Widget>? topButtonBar,
  EdgeInsets? topButtonBarMargin,
  List<Widget>? bottomButtonBar,
  EdgeInsets? bottomButtonBarMargin,
  double? buttonBarHeight,
  double? buttonBarButtonSize,
  Color? buttonBarButtonColor,
  Duration? seekBarTransitionDuration,
  Duration? seekBarThumbTransitionDuration,
  EdgeInsets? seekBarMargin,
  double? seekBarHeight,
  double? seekBarHoverHeight,
  double? seekBarContainerHeight,
  Color? seekBarColor,
  Color? seekBarHoverColor,
  Color? seekBarPositionColor,
  Color? seekBarBufferColor,
  double? seekBarThumbSize,
  Color? seekBarThumbColor,
  Color? volumeBarColor,
  Color? volumeBarActiveColor,
  double? volumeBarThumbSize,
  Color? volumeBarThumbColor,
  Duration? volumeBarTransitionDuration,
  bool? shiftSubtitlesOnControlsVisibilityChange,
}) {
  return MaterialDesktopVideoControlsThemeData(
    displaySeekBar: displaySeekBar ?? this.displaySeekBar,
    automaticallyImplySkipNextButton: automaticallyImplySkipNextButton ??
        this.automaticallyImplySkipNextButton,
    automaticallyImplySkipPreviousButton:
        automaticallyImplySkipPreviousButton ??
            this.automaticallyImplySkipPreviousButton,
    toggleFullscreenOnDoublePress:
        toggleFullscreenOnDoublePress ?? this.toggleFullscreenOnDoublePress,
    modifyVolumeOnScroll: modifyVolumeOnScroll ?? this.modifyVolumeOnScroll,
    keyboardShortcuts: keyboardShortcuts ?? this.keyboardShortcuts,
    visibleOnMount: visibleOnMount ?? this.visibleOnMount,
    controlsHoverDuration:
        controlsHoverDuration ?? this.controlsHoverDuration,
    bufferingIndicatorBuilder:
        bufferingIndicatorBuilder ?? this.bufferingIndicatorBuilder,
    controlsTransitionDuration:
        controlsTransitionDuration ?? this.controlsTransitionDuration,
    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,
    seekBarTransitionDuration:
        seekBarTransitionDuration ?? this.seekBarTransitionDuration,
    seekBarThumbTransitionDuration:
        seekBarThumbTransitionDuration ?? this.seekBarThumbTransitionDuration,
    seekBarMargin: seekBarMargin ?? this.seekBarMargin,
    seekBarHeight: seekBarHeight ?? this.seekBarHeight,
    seekBarHoverHeight: seekBarHoverHeight ?? this.seekBarHoverHeight,
    seekBarContainerHeight:
        seekBarContainerHeight ?? this.seekBarContainerHeight,
    seekBarColor: seekBarColor ?? this.seekBarColor,
    seekBarHoverColor: seekBarHoverColor ?? this.seekBarHoverColor,
    seekBarPositionColor: seekBarPositionColor ?? this.seekBarPositionColor,
    seekBarBufferColor: seekBarBufferColor ?? this.seekBarBufferColor,
    seekBarThumbSize: seekBarThumbSize ?? this.seekBarThumbSize,
    seekBarThumbColor: seekBarThumbColor ?? this.seekBarThumbColor,
    volumeBarColor: volumeBarColor ?? this.volumeBarColor,
    volumeBarActiveColor: volumeBarActiveColor ?? this.volumeBarActiveColor,
    volumeBarThumbSize: volumeBarThumbSize ?? this.volumeBarThumbSize,
    volumeBarThumbColor: volumeBarThumbColor ?? this.volumeBarThumbColor,
    volumeBarTransitionDuration:
        volumeBarTransitionDuration ?? this.volumeBarTransitionDuration,
    shiftSubtitlesOnControlsVisibilityChange:
        shiftSubtitlesOnControlsVisibilityChange ??
            this.shiftSubtitlesOnControlsVisibilityChange,
  );
}