VersesService class
VersesService is the most important part in the package. it have many methods and properties
Constructors
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
-
allVerses
↔ List<
Verse> -
allVerses is static List of Verse that will filled with verses when calling initializing method from QuranController.
getter/setter pair
-
juzsDetails
↔ List<
Juz> -
juzsDetails is static List of Juz that contains the data from json file in the assets.
getter/setter pair
-
surahsDetails
↔ List<
Surah> -
surahsDetails is static List of Surah that contains the data from json file in the assets.
getter/setter pair
Static Methods
-
gettingVerseByVerseKey(
String key) → Verse - gettingVerseByVerseKey is a Verse method it's getting specific verse from allVerses by verse key.
-
gettingVersesByJuzNumber(
int juzNumber) → Juz -
gettingVersesByJuzNumber is a Juz method it's getting all verses from allVerses by specific
juzNumber. -
gettingVersesByPageNumber(
int pageNumber) → List< Verse> -
gettingVersesByPageNumber is a List of Verse method it's getting all verses from allVerses by specific
pageNumber. -
gettingVersesBySurahNumber(
int surahNumber) → Surah -
gettingVersesBySurahNumber is a Surah method it's getting all verses from allVerses by specific
surahNumber. -
loadVerses(
) → Future< void> -
loadVerses is a void Future method that called in
initializingmethod in QuranController class. it is responsible on loading all verses of Quran and set them in allVerses variable. furthermore, it loads the details for surahsDetails and juzsDetails.