copyWith method

PlayerVisibilityConfig copyWith({
  1. bool? showControls,
  2. bool? showFullscreenButton,
  3. bool? showSettingsButton,
  4. bool? showAutoPlaySetting,
  5. bool? showLoopSetting,
  6. bool? showForceHDSetting,
  7. bool? showCaptionsSetting,
  8. bool? showMuteSetting,
})

Creates a copy with updated values

Implementation

PlayerVisibilityConfig copyWith({
  bool? showControls,
  bool? showFullscreenButton,
  bool? showSettingsButton,
  bool? showAutoPlaySetting,
  bool? showLoopSetting,
  bool? showForceHDSetting,
  bool? showCaptionsSetting,
  bool? showMuteSetting,
}) {
  return PlayerVisibilityConfig(
    showControls: showControls ?? this.showControls,
    showFullscreenButton: showFullscreenButton ?? this.showFullscreenButton,
    showSettingsButton: showSettingsButton ?? this.showSettingsButton,
    showAutoPlaySetting: showAutoPlaySetting ?? this.showAutoPlaySetting,
    showLoopSetting: showLoopSetting ?? this.showLoopSetting,
    showForceHDSetting: showForceHDSetting ?? this.showForceHDSetting,
    showCaptionsSetting: showCaptionsSetting ?? this.showCaptionsSetting,
    showMuteSetting: showMuteSetting ?? this.showMuteSetting,
  );
}