copyWith method
Implementation
QuranAudioState copyWith({
int? surah,
int? ayah,
bool? isPlaying,
bool? isActive,
bool? isLoading,
Duration? position,
Duration? duration,
int? reciterIndex,
}) {
return QuranAudioState(
surah: surah ?? this.surah,
ayah: ayah ?? this.ayah,
isPlaying: isPlaying ?? this.isPlaying,
isActive: isActive ?? this.isActive,
isLoading: isLoading ?? this.isLoading,
position: position ?? this.position,
duration: duration ?? this.duration,
reciterIndex: reciterIndex ?? this.reciterIndex,
);
}