copyWith method

SajdahResult copyWith({
  1. int? totalSajdahAyat,
  2. List<AyahWithSurah>? sajdahAyat,
  3. String? source,
})

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

Implementation

SajdahResult copyWith({
  int? totalSajdahAyat,
  List<AyahWithSurah>? sajdahAyat,
  String? source,
}) {
  return SajdahResult(
    totalSajdahAyat: totalSajdahAyat ?? this.totalSajdahAyat,
    sajdahAyat: sajdahAyat ?? this.sajdahAyat,
    source: source ?? this.source,
  );
}