min2 static method

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

Gets the minimum of two dates.

Implementation

static Hora min2(Hora a, Hora b) => a.isBefore(b) ? a : b;