FontLoaderService class
FontLoaderService is responsible for the process of loading fonts from Assets.
Constructors
- FontLoaderService({required int pageNumber})
-
FontLoaderService Constructor which takes one required variable
pageNumber.
Properties
- fontFamily → String
-
fontFamily is a final variable that contains the value of the Quran page number Font which loaded from assets.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
loadFonts(
) → Future< void> -
loadFonts Future void method that loads font from assets depending on
_fontNumbervariable. -
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
-
loadBasmalaAndSurahsNameFonts(
) → Future< void> - loadBasmalaAndSurahsNameFonts is static Future void method that loads Basmala & Surahs names font family from the assets. it depends on basmalaAndSurahsNameFontsFamily value.
Constants
- basmalaAndSurahsNameFontsFamily → const String
- basmalaAndSurahsNameFontsFamily is a static const variable that contains the constant value of the Basmala, Border and "Surah" word font family.