AyahWithSurah class

Represents an ayah with its associated surah information.

Inheritance

Constructors

AyahWithSurah.new({required int id, required String text, required bool sajdah, required int juz, required int hizb, required Surah surah, String source = "Tanzil Project - https://tanzil.net"})
const
AyahWithSurah.fromJson(Map<String, dynamic> json)
Creates an AyahWithSurah from JSON data
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
hizb int
The Hizb number this ayah belongs to (1-60)
finalinherited
id int
The ayah number within its surah
finalinherited
juz int
The Juz (Para) number this ayah belongs to (1-30)
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sajdah bool
Whether this ayah requires sajdah (prostration)
finalinherited
source String
Source attribution for the Quran text
final
surah Surah
The surah this ayah belongs to
final
text String
The Arabic text of the ayah
finalinherited

Methods

copyWith({int? id, String? text, bool? sajdah, int? juz, int? hizb, Surah? surah, String? source}) AyahWithSurah
Creates a copy of this AyahWithSurah with the given fields replaced with new values
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the Ayah to JSON
override
toString() String
A string representation of this object.
override

Operators

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