max static method
Gets the maximum from a list of dates.
Throws StateError if the list is empty.
Implementation
static Hora max(Iterable<Hora> dates) {
if (dates.isEmpty) {
throw StateError('Cannot find max of empty collection');
}
return dates.reduce(max2);
}