Surah class

Surah which is the model class that responsible on all details of Quran Surahs.

Constructors

Surah({int? surahNumber, String? surahName, int? startPage, int? endPage, List<Verse>? verses, int? versesCount})
the main constructor of Surah class.
Surah.fromJson(Map<String, dynamic> data)
Surah.fromJson is a named constructor that convert a Map into Surah class object.

Properties

endPage int?
endPage the variable that holding the number of page that the exact surah ends with.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startPage int?
startPage the variable that holding the number of page that the exact surah starts with.
getter/setter pair
surahName String?
surahName the variable that holding the name of exact surah.
getter/setter pair
surahNumber int?
surahNumber the variable that holding the number of surah.
getter/setter pair
verses List<Verse>?
verses the variable that holding the verses of exact surah.
getter/setter pair
versesCount int?
versesCount the variable that holding the number of verses that the exact surah contains.
getter/setter pair

Methods

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 Surah class into a Map.
toString() String
A string representation of this object.
inherited

Operators

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