mostFrequentJuz property

MapEntry<int, int>? get mostFrequentJuz

The Juz with the most results

Implementation

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

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