getMaxDouble method

double? getMaxDouble(
  1. double? collumMax(
    1. E? element
    )
)

Returns max int value in Irarable on collum? specified If Iterable is null or empty, return null

Implementation

double? getMaxDouble(double? Function(E? element) collumMax) {
  if (this == null || this!.isEmpty) return null;
  double? max;
  this!.forEach((element) {
    double? pMax = collumMax(element);
    if (pMax != null) {
      if (max == null || pMax > max!) {
        max = pMax;
      }
    }
  });
  return max;
}