copyWith method
WebPlayerValue
copyWith({
- double? currentTime,
- double? duration,
- double? bufferedPercent,
- bool? isPaused,
- bool? isFullScreen,
- bool? isInPictureInPicture,
- bool? isTracking,
- bool? isCover,
- bool? isUserActive,
- bool? isReady,
- String? errorMessage,
- List<
VideoTrack> ? textTracks, - List<
VideoTrack> ? audioTracks, - InAppWebViewController? webViewController,
Implementation
WebPlayerValue copyWith({
double? currentTime,
double? duration,
double? bufferedPercent,
bool? isPaused,
bool? isFullScreen,
bool? isInPictureInPicture,
bool? isTracking,
bool? isCover,
bool? isUserActive,
bool? isReady,
String? errorMessage,
List<VideoTrack>? textTracks,
List<VideoTrack>? audioTracks,
InAppWebViewController? webViewController,
}) {
return WebPlayerValue(
currentTime: currentTime ?? this.currentTime,
duration: duration ?? this.duration,
bufferedPercent: bufferedPercent ?? this.bufferedPercent,
isPaused: isPaused ?? this.isPaused,
isFullScreen: isFullScreen ?? this.isFullScreen,
isInPictureInPicture: isInPictureInPicture ?? this.isInPictureInPicture,
isTracking: isTracking ?? this.isTracking,
isCover: isCover ?? this.isCover,
isUserActive: isUserActive ?? this.isUserActive,
isReady: isReady ?? this.isReady,
errorMessage: errorMessage ?? this.errorMessage,
audioTracks: audioTracks ?? this.audioTracks,
textTracks: textTracks ?? this.textTracks,
webViewController: webViewController ?? this.webViewController,
);
}