copyWith method
YoutubePlayerFlags
copyWith({
- bool? hideControls,
- bool? autoPlay,
- bool? mute,
- bool? showVideoProgressIndicator,
- bool? isLive,
- bool? hideThumbnail,
- bool? disableDragSeek,
- bool? loop,
- bool? enableCaption,
- bool? forceHD,
- int? startAt,
- int? endAt,
- bool? controlsVisibleAtStart,
- bool? useHybridComposition,
- bool? showLiveFullscreenButton,
Copies new values assigned to the YoutubePlayerFlags.
Implementation
YoutubePlayerFlags copyWith({
bool? hideControls,
bool? autoPlay,
bool? mute,
bool? showVideoProgressIndicator,
bool? isLive,
bool? hideThumbnail,
bool? disableDragSeek,
bool? loop,
bool? enableCaption,
bool? forceHD,
String? captionLanguage,
int? startAt,
int? endAt,
bool? controlsVisibleAtStart,
bool? useHybridComposition,
bool? showLiveFullscreenButton,
}) {
return YoutubePlayerFlags(
autoPlay: autoPlay ?? this.autoPlay,
captionLanguage: captionLanguage ?? this.captionLanguage,
disableDragSeek: disableDragSeek ?? this.disableDragSeek,
enableCaption: enableCaption ?? this.enableCaption,
hideControls: hideControls ?? this.hideControls,
hideThumbnail: hideThumbnail ?? this.hideThumbnail,
isLive: isLive ?? this.isLive,
loop: loop ?? this.loop,
mute: mute ?? this.mute,
forceHD: forceHD ?? this.forceHD,
startAt: startAt ?? this.startAt,
endAt: endAt ?? this.endAt,
controlsVisibleAtStart:
controlsVisibleAtStart ?? this.controlsVisibleAtStart,
useHybridComposition: useHybridComposition ?? this.useHybridComposition,
showLiveFullscreenButton:
showLiveFullscreenButton ?? this.showLiveFullscreenButton,
);
}