QuranService class
The main service class providing access to Quran data and functionality.
This class serves as the primary interface for accessing Quran content, search functionality, and Islamic reading divisions.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → QuranService
-
Get the singleton instance of QuranService
no setter
Static Methods
-
getAyah(
int surahId, int ayahId) → Future< AyahWithSurah> - Get a specific ayah from the Quran.
-
getAyahRange(
int surahId, int startAyah, int endAyah) → Future< AyahRange> - Get a range of consecutive ayat from a specific surah.
-
getHizb(
int hizbNumber) → Future< HizbResult> - Get all ayat from a specific Hizb.
-
getJuz(
int juzNumber) → Future< JuzResult> - Get all ayat from a specific Juz (Para).
-
getQuranData(
) → Future< QuranData> - Get the complete Quran dataset.
-
getRandomAyah(
) → Future< AyahWithSurah> - Get a random ayah from the Quran.
-
getSajdahAyat(
) → Future< SajdahResult> - Get all ayat where sajdah (prostration) is recommended.
-
getSurah(
int surahId) → Future< Surah> - Get a complete surah with all its ayat.
-
getSurahStatistics(
) → Future< SurahStatistics> - Get comprehensive statistics about the Quran.
-
initialize(
) → Future< void> - Initialize the service by loading Quran data
-
searchBySurahName(
String name) → Future< SurahSearchResult> - Search for surahs by Arabic or English name.
-
searchText(
String searchTerm) → Future< SearchResult> - Search for Arabic text within the Quran.