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,
})

Implementation

WebPlayerValue copyWith({
  double? currentTime,
  double? duration,
  double? bufferedPercent,
  bool? isPaused,
  bool? isFullScreen,
  bool? isInPictureInPicture,
  bool? isTracking,
}) {
  return WebPlayerValue(
    currentTime ?? this.currentTime,
    duration ?? this.duration,
    bufferedPercent ?? this.bufferedPercent,
    isPaused ?? this.isPaused,
    isFullScreen ?? this.isFullScreen,
    isInPictureInPicture ?? this.isInPictureInPicture,
    isTracking ?? this.isTracking,
  );
}