dominantSurah property

MapEntry<int, int>? get dominantSurah

The surah with the most ayat in this Juz

Implementation

MapEntry<int, int>? get dominantSurah {
  if (surahDistribution.isEmpty) return null;

  return surahDistribution.entries.reduce(
    (curr, next) => curr.value > next.value ? curr : next,
  );
}