copyWith method

WebPlayerValue copyWith({
  1. double? currentTime,
  2. double? duration,
  3. double? bufferedPercent,
  4. bool? isPaused,
  5. bool? isFullScreen,
  6. bool? isInPictureInPicture,
  7. bool? isTracking,
  8. bool? isCover,
  9. bool? isUserActive,
  10. bool? isReady,
  11. String? errorMessage,
  12. List<VideoTrack>? textTracks,
  13. List<VideoTrack>? audioTracks,
  14. 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,
  );
}