copyWith method

Ayah copyWith({
  1. int? id,
  2. String? text,
  3. bool? sajdah,
  4. int? juz,
  5. int? hizb,
})

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

Implementation

Ayah copyWith({
  int? id,
  String? text,
  bool? sajdah,
  int? juz,
  int? hizb,
}) {
  return Ayah(
    id: id ?? this.id,
    text: text ?? this.text,
    sajdah: sajdah ?? this.sajdah,
    juz: juz ?? this.juz,
    hizb: hizb ?? this.hizb,
  );
}