maxDouble method

double maxDouble()

Implementation

double maxDouble() {
  if (isEmpty) {
    return 0;
  }
  if (length == 1) {
    return first as double;
  }

  return fold(
      first as double, (prev, next) => math.max(prev, next as double));
}