QuranDatasource class
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- jsonAssetURL → String
-
no setter
- packageName ↔ String
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- surah ↔ SurahContentModel
-
getter/setter pair
-
surahList
↔ List<
SurahHeaderModel> -
getter/setter pair
Methods
-
getSurahArabicContent(
int surahNumber) → Future< SurahContentModel> - get surah arabic content including aya
-
getSurahContent(
{required int surahNumber, String? translationLang, String? transliterationLang, String? tafseer}) → Future< SurahContentModel> - returns surah data, including aya, aya translation, transliteration and tafseer
-
getSurahList(
) → Future< List< SurahHeaderModel> > - returns list of all Quran surah and its attributes
-
initQuran(
{String? jsonAssetBaseURL}) → dynamic - init quran, optional in case url of the assets needs to be changed
-
loadJsonAssets(
String jsonPath) → Future - returns json data from preincluded json files
-
loadJsonFromURL(
String jsonURL) → Future - returns json data from cloud using http request
-
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 → QuranDatasource
-
no setter