getMaxValue method

double getMaxValue({
  1. double initialValue = -double.infinity,
})

Implementation

double getMaxValue({double initialValue = -double.infinity}) {
  double max = initialValue;
  if (T == double) {
    data.forEach((element) {
      if ((element.value as double) > max) {
        max = element.value as double;
      }
    });
  }
  return max;
}