surahWithMostSajdah property

MapEntry<int, int>? get surahWithMostSajdah

The surah with the most sajdah ayat

Implementation

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

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