HizbResult class

Represents the result of getting a complete Hizb.

Constructors

HizbResult.new({required int hizb, required int juz, required int totalAyat, required List<AyahWithSurah> ayat, String source = "Tanzil Project - https://tanzil.net"})
const
HizbResult.fromJson(Map<String, dynamic> json)
Creates a HizbResult from JSON data
factory

Properties

ayat List<AyahWithSurah>
List of all ayat in this Hizb
final
companionHizb int
Get the companion Hizb number (the other half of the same Juz)
no setter
estimatedReadingMinutes double
Estimated reading time in minutes (assuming 2 ayat per minute)
no setter
hashCode int
The hash code for this object.
no setteroverride
hizb int
The Hizb number (1-60)
final
isFirstHizbOfJuz bool
Whether this is the first Hizb of its Juz
no setter
isSecondHizbOfJuz bool
Whether this is the second Hizb of its Juz
no setter
juz int
The parent Juz number this Hizb belongs to (1-30)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source String
Source attribution for the Quran text
final
totalAyat int
Total number of ayat in this Hizb
final

Methods

copyWith({int? hizb, int? juz, int? totalAyat, List<AyahWithSurah>? ayat, String? source}) HizbResult
Creates a copy of this HizbResult 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 HizbResult to JSON
toString() String
A string representation of this object.
override

Operators

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