maxDouble method
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));
}
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));
}