Ayah class

Represents a single ayah (verse) from the Quran.

Implementers

Constructors

Ayah.new({required int id, required String text, required bool sajdah, required int juz, required int hizb})
const
Ayah.fromJson(Map<String, dynamic> json)
Creates an Ayah 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)
final
id int
The ayah number within its surah
final
juz int
The Juz (Para) number this ayah belongs to (1-30)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sajdah bool
Whether this ayah requires sajdah (prostration)
final
text String
The Arabic text of the ayah
final

Methods

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

Operators

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