QuranData class

Represents the complete Quran dataset.

Constructors

QuranData.new({required String version, required String source, required List<Surah> surahs, required QuranMetadata metadata})
const
QuranData.fromJson(Map<String, dynamic> json)
Creates QuranData from JSON
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isValid bool
Validate the data structure
no setter
longestSurah Surah
Get the longest surah
no setter
meccanSurahs List<Surah>
Get all Meccan surahs
no setter
medinanSurahs List<Surah>
Get all Medinan surahs
no setter
metadata QuranMetadata
Metadata about the Quran
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shortestSurah Surah
Get the shortest surah
no setter
source String
Source attribution
final
summary DataSummary
Get summary statistics
no setter
surahs List<Surah>
List of all 114 surahs
final
surahsByLengthAsc List<Surah>
Get surahs sorted by length (ascending)
no setter
surahsByLengthDesc List<Surah>
Get surahs sorted by length (descending)
no setter
surahsByRevelationOrder List<Surah>
Get surahs sorted by revelation order
no setter
surahsWithSajdah List<Surah>
Get surahs that contain sajdah ayat
no setter
version String
Version of the data format
final

Methods

getSurah(int surahId) Surah?
Get a specific surah by ID
getSurahsByRevelationType(String revelationType) List<Surah>
Get surahs by revelation type
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts QuranData to JSON
toString() String
A string representation of this object.
override

Operators

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