copyWith method
MaterialDesktopVideoControlsThemeData
copyWith({
- bool? displaySeekBar,
- bool? automaticallyImplySkipNextButton,
- bool? automaticallyImplySkipPreviousButton,
- bool? toggleFullscreenOnDoublePress,
- bool? modifyVolumeOnScroll,
- Map<
ShortcutActivator, VoidCallback> ? keyboardShortcuts, - bool? visibleOnMount,
- Duration? controlsHoverDuration,
- Duration? controlsTransitionDuration,
- Widget 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,
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,
);
}