JuzResult class

Represents the result of getting a complete Juz (Para).

Constructors

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

Properties

ayat List<AyahWithSurah>
List of all ayat in this Juz
final
estimatedReadingMinutes double
Estimated reading time in minutes (assuming 2 ayat per minute)
no setter
firstAyah AyahWithSurah?
Get the first ayah of this Juz
no setter
hashCode int
The hash code for this object.
no setteroverride
hasSajdah bool
Whether this Juz contains any sajdah ayat
no setter
juz int
The Juz number (1-30)
final
lastAyah AyahWithSurah?
Get the last ayah of this Juz
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sajdahAyat List<AyahWithSurah>
Get all sajdah ayat in this Juz
no setter
source String
Source attribution for the Quran text
final
statistics JuzStatistics
Get statistics about this Juz
no setter
surahsInJuz List<int>
Get unique surahs that appear in this Juz
no setter
totalAyat int
Total number of ayat in this Juz
final

Methods

copyWith({int? juz, int? totalAyat, List<AyahWithSurah>? ayat, String? source}) JuzResult
Creates a copy of this JuzResult with the given fields replaced with new values
getAyatByRevelationType(String revelationType) List<AyahWithSurah>
Get ayat by revelation type
getAyatFromSurah(int surahId) List<AyahWithSurah>
Get ayat from a specific surah within this Juz
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the JuzResult to JSON
toString() String
A string representation of this object.
override

Operators

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