AyatCounts class

Statistics about ayat counts and distribution.

Constructors

AyatCounts.new({required int min, required int max, required double median, required int mode, required Map<int, int> distribution})
const
AyatCounts.fromJson(Map<String, dynamic> json)
Creates AyatCounts from JSON data
factory

Properties

distribution Map<int, int>
Distribution of surah lengths (ayat count -> number of surahs)
final
hashCode int
The hash code for this object.
no setterinherited
lengthCategories Map<String, int>
Get surahs by length category
no setter
max int
Maximum number of ayat in any surah
final
median double
Median number of ayat across all surahs
final
min int
Minimum number of ayat in any surah
final
mode int
Most common number of ayat (mode)
final
range int
Range of ayat counts (max - min)
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uniqueLengths int
Number of unique surah lengths
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts AyatCounts to JSON
toString() String
A string representation of this object.
override

Operators

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