max static method

num max(
  1. Iterable<num> values
)

Returns the largest value in values.

Implementation

static num max(Iterable<num> values) {
  if (values.isEmpty) {
    throw ArgumentError('values must not be empty');
  }
  return values.reduce(math.max);
}