maxOrNull static method

Hora? maxOrNull(
  1. Iterable<Hora> dates
)

Gets the maximum from a list, or null if empty.

Implementation

static Hora? maxOrNull(Iterable<Hora> dates) {
  if (dates.isEmpty) return null;
  return dates.reduce(max2);
}