copyWith method
YoutubePlayerValue
copyWith(
- {bool? isReady,
- bool? isControlsVisible,
- bool? isLoaded,
- bool? hasPlayed,
- Duration? position,
- double? buffered,
- bool? isPlaying,
- bool? isFullScreen,
- int? volume,
- PlayerState? playerState,
- double? playbackRate,
- String? playbackQuality,
- int? errorCode,
- InAppWebViewController? webViewController,
- bool? isDragging,
- YoutubeMetaData? metaData}
Creates new YoutubePlayerValue with assigned parameters and overrides the old one.
Implementation
YoutubePlayerValue copyWith({
bool? isReady,
bool? isControlsVisible,
bool? isLoaded,
bool? hasPlayed,
Duration? position,
double? buffered,
bool? isPlaying,
bool? isFullScreen,
int? volume,
PlayerState? playerState,
double? playbackRate,
String? playbackQuality,
int? errorCode,
InAppWebViewController? webViewController,
bool? isDragging,
YoutubeMetaData? metaData,
}) {
return YoutubePlayerValue(
isReady: isReady ?? this.isReady,
isControlsVisible: isControlsVisible ?? this.isControlsVisible,
hasPlayed: hasPlayed ?? this.hasPlayed,
position: position ?? this.position,
buffered: buffered ?? this.buffered,
isPlaying: isPlaying ?? this.isPlaying,
isFullScreen: isFullScreen ?? this.isFullScreen,
volume: volume ?? this.volume,
playerState: playerState ?? this.playerState,
playbackRate: playbackRate ?? this.playbackRate,
playbackQuality: playbackQuality ?? this.playbackQuality,
errorCode: errorCode ?? this.errorCode,
webViewController: webViewController ?? this.webViewController,
isDragging: isDragging ?? this.isDragging,
metaData: metaData ?? this.metaData,
);
}