AssetLoader class
A class responsible for loading assets and parsing Quran text files.
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 Methods
-
loadAsset(
String path) → Future< String> -
Loads an asset file from the given
path. -
loadQuranText(
{QuranLanguage? quranLanguage}) → Future< Map< int, Map< >int, Verse> > -
Loads the Quran text from the asset file based on the specified
quranLanguage. Returns a map containing the verses of each Surah, where the key is the Surah number and the value is another map containing the verses of that Surah, where the key is the verse number and the value is a Verse object. -
loadTranslatedQuranText(
) → Future< List< Map< >int, Map< >int, Verse> > - Loads the Quran text translations from asset files for all supported languages. This method performs concurrent asynchronous operations to load the Quran text.