copyWith method

Ayah copyWith({
  1. int? id,
  2. int? surahNumber,
  3. String? text,
  4. int? page,
  5. int? juz,
  6. String? tafsir,
  7. String? audioUrl,
  8. bool? isSajda,
})

Implementation

Ayah copyWith({
  int? id,
  int? surahNumber,
  String? text,
  int? page,
  int? juz,
  String? tafsir,
  String? audioUrl,
  bool? isSajda,
}) =>
    Ayah(
      id: id ?? this.id,
      surahNumber: surahNumber ?? this.surahNumber,
      text: text ?? this.text,
      page: page ?? this.page,
      juz: juz ?? this.juz,
      tafsir: tafsir ?? this.tafsir,
      audioUrl: audioUrl ?? this.audioUrl,
      isSajda: isSajda ?? this.isSajda,
    );