copyWith method

TaPlayerState copyWith({
  1. TaPlayerStatus? status,
  2. Duration? position,
  3. Duration? duration,
  4. Duration? buffered,
  5. double? volume,
  6. double? speed,
  7. bool? isMuted,
  8. bool? isFullscreen,
  9. String? errorMessage,
})

Implementation

TaPlayerState copyWith({
  TaPlayerStatus? status,
  Duration? position,
  Duration? duration,
  Duration? buffered,
  double? volume,
  double? speed,
  bool? isMuted,
  bool? isFullscreen,
  String? errorMessage,
}) {
  return TaPlayerState(
    status: status ?? this.status,
    position: position ?? this.position,
    duration: duration ?? this.duration,
    buffered: buffered ?? this.buffered,
    volume: volume ?? this.volume,
    speed: speed ?? this.speed,
    isMuted: isMuted ?? this.isMuted,
    isFullscreen: isFullscreen ?? this.isFullscreen,
    errorMessage: errorMessage,
  );
}