SajdahResult class

Represents the result of getting all sajdah (prostration) ayat.

Constructors

SajdahResult.new({required int totalSajdahAyat, required List<AyahWithSurah> sajdahAyat, String source = "Tanzil Project - https://tanzil.net"})
const
SajdahResult.fromJson(Map<String, dynamic> json)
Creates a SajdahResult from JSON data
factory

Properties

firstSajdah AyahWithSurah?
Get the first sajdah ayah (by Mushaf order)
no setter
hashCode int
The hash code for this object.
no setteroverride
isComplete bool
Whether all expected sajdah ayat are present (should be 15)
no setter
juzWithSajdah List<int>
Get unique Juz that contain sajdah ayat
no setter
lastSajdah AyahWithSurah?
Get the last sajdah ayah (by Mushaf order)
no setter
meccanSajdahAyat List<AyahWithSurah>
Get Meccan sajdah ayat
no setter
medinanSajdahAyat List<AyahWithSurah>
Get Medinan sajdah ayat
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sajdahAyat List<AyahWithSurah>
List of all sajdah ayat
final
source String
Source attribution for the Quran text
final
statistics SajdahStatistics
Get statistics about sajdah ayat distribution
no setter
surahsWithSajdah List<int>
Get unique surahs that contain sajdah ayat
no setter
totalSajdahAyat int
Total number of sajdah ayat in the Quran (15)
final

Methods

copyWith({int? totalSajdahAyat, List<AyahWithSurah>? sajdahAyat, String? source}) SajdahResult
Creates a copy of this SajdahResult with the given fields replaced with new values
getSajdahByRevelationType(String revelationType) List<AyahWithSurah>
Get sajdah ayat by revelation type
getSajdahFromHizb(int hizbNumber) List<AyahWithSurah>
Get sajdah ayat from a specific Hizb
getSajdahFromJuz(int juzNumber) List<AyahWithSurah>
Get sajdah ayat from a specific Juz
getSajdahFromSurah(int surahId) List<AyahWithSurah>
Get sajdah ayat from a specific surah
groupByJuz() Map<int, List<AyahWithSurah>>
Group sajdah ayat by Juz
groupByRevelationType() Map<String, List<AyahWithSurah>>
Group sajdah ayat by revelation type
groupBySurah() Map<int, List<AyahWithSurah>>
Group sajdah ayat by surah
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the SajdahResult to JSON
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override