juzWithMostSajdah property

MapEntry<int, int>? get juzWithMostSajdah

The Juz with the most sajdah ayat

Implementation

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

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