copyWith method
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,
);
}