copyWith method
MaterialTvVideoControlsThemeData
copyWith({
- bool? displaySeekBar,
- bool? automaticallyImplySkipNextButton,
- bool? automaticallyImplySkipPreviousButton,
- bool? toggleFullscreenOnDoublePress,
- bool? playAndPauseOnTap,
- bool? modifyVolumeOnScroll,
- Map<
ShortcutActivator, VoidCallback> ? keyboardShortcuts, - bool? visibleOnMount,
- bool? hideMouseOnControlsRemoval,
- 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 MaterialTvVideoControlsThemeData with the given fields replaced by the non-null parameter values.
Implementation
MaterialTvVideoControlsThemeData copyWith({
bool? displaySeekBar,
bool? automaticallyImplySkipNextButton,
bool? automaticallyImplySkipPreviousButton,
bool? toggleFullscreenOnDoublePress,
bool? playAndPauseOnTap,
bool? modifyVolumeOnScroll,
Map<ShortcutActivator, VoidCallback>? keyboardShortcuts,
bool? visibleOnMount,
bool? hideMouseOnControlsRemoval,
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 MaterialTvVideoControlsThemeData(
displaySeekBar: displaySeekBar ?? this.displaySeekBar,
automaticallyImplySkipNextButton: automaticallyImplySkipNextButton ??
this.automaticallyImplySkipNextButton,
automaticallyImplySkipPreviousButton:
automaticallyImplySkipPreviousButton ??
this.automaticallyImplySkipPreviousButton,
toggleFullscreenOnDoublePress:
toggleFullscreenOnDoublePress ?? this.toggleFullscreenOnDoublePress,
playAndPauseOnTap: playAndPauseOnTap ?? this.playAndPauseOnTap,
modifyVolumeOnScroll: modifyVolumeOnScroll ?? this.modifyVolumeOnScroll,
keyboardShortcuts: keyboardShortcuts ?? this.keyboardShortcuts,
visibleOnMount: visibleOnMount ?? this.visibleOnMount,
hideMouseOnControlsRemoval:
hideMouseOnControlsRemoval ?? this.hideMouseOnControlsRemoval,
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,
);
}