maxEntryCountSet property

T? get maxEntryCountSet

The set with the most entries (the first of them on a tie), or null when there are no sets.

Implementation

T? get maxEntryCountSet {
  if (dataSets.isEmpty) return null;
  var max = dataSets[0];
  for (var i = 1; i < dataSets.length; i++) {
    final set = dataSets[i];
    if (set.entryCount > max.entryCount) max = set;
  }
  return max;
}