copyWith method

AudioState copyWith({
  1. AudioStatus? status,
  2. Duration? duration,
  3. Duration? position,
  4. double? velocity,
  5. String? audioId,
})

Implementation

AudioState copyWith({
  AudioStatus? status,
  Duration? duration,
  Duration? position,
  double? velocity,
  String? audioId,
}) {
  return AudioState(
    status: status ?? this.status,
    duration: duration ?? this.duration,
    position: position ?? this.position,
    velocity: velocity ?? this.velocity,
    audioId: audioId ?? this.audioId,
  );
}