copyWith method

QuranAudioState copyWith({
  1. int? surah,
  2. int? ayah,
  3. bool? isPlaying,
  4. bool? isActive,
  5. bool? isLoading,
  6. Duration? position,
  7. Duration? duration,
  8. int? reciterIndex,
})

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