copyWith method

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