max2 static method

Hora max2(
  1. Hora a,
  2. Hora b
)

Gets the maximum of two dates.

Implementation

static Hora max2(Hora a, Hora b) => a.isAfter(b) ? a : b;