Verse class

Verse which is the model class that responsible on all details of Quran verses.

Constructors

Verse({int? verseNumber, String? verseKey, String? textImlaeiSimple, int? pageNumber, int? juzNumber, List<String>? words, String? font})
the main constructor of Verse class.
Verse.fromJson(Map<String, dynamic> data)
Verse.fromJson is a named constructor that convert a Map into Verse class object.

Properties

font String?
font is the variable that holding the value of font family of the exact verse.
getter/setter pair
fullVerse String?
fullVerse is a getter that joins the characters of words as String.
no setter
hashCode int
The hash code for this object.
no setterinherited
juzNumber int?
juzNumber the variable that holding the number of juz that the exact verse is with.
getter/setter pair
pageNumber int?
pageNumber the variable that holding the number of page that the exact verse starts and ends with.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
surahNumber int
surahNumber is a getter that extract the surah number from verseKey.
no setter
textImlaeiSimple String?
textImlaeiSimple the variable that holding the simple text of verse. for example: 'الحمد لله رب العالمين'.
getter/setter pair
verseKey String?
verseKey the variable that holding the key of exact verse. for example: '1:1', '2:142', etc.
getter/setter pair
verseNumber int?
verseNumber the variable that holding the number of verse.
getter/setter pair
words List<String>?
words the variable that holding all the unicodes of verse separated as a List.
getter/setter pair

Methods

copyWith({int? verseNumber, String? verseKey, String? textImlaeiSimple, int? pageNumber, int? juzNumber, List<String>? words, String? font}) Verse
copyWith is a method that replace the old values with the new values.
copyWithBasmala(Verse basmalaVerse) Verse
copyWithBasmala is a method that replace the verse with the Basmala verse.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toJson is a method that convert all variables of Verse class into a Map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited