copyWith method

  1. @override
AyahWithSurah copyWith({
  1. int? id,
  2. String? text,
  3. bool? sajdah,
  4. int? juz,
  5. int? hizb,
  6. Surah? surah,
  7. String? source,
})
override

Creates a copy of this AyahWithSurah with the given fields replaced with new values

Implementation

@override
AyahWithSurah copyWith({
  int? id,
  String? text,
  bool? sajdah,
  int? juz,
  int? hizb,
  Surah? surah,
  String? source,
}) {
  return AyahWithSurah(
    id: id ?? this.id,
    text: text ?? this.text,
    sajdah: sajdah ?? this.sajdah,
    juz: juz ?? this.juz,
    hizb: hizb ?? this.hizb,
    surah: surah ?? this.surah,
    source: source ?? this.source,
  );
}