min static method

DateTime min(
  1. DateTime a,
  2. DateTime b
)

Returns the earliest of two dates.

Implementation

static DateTime min(DateTime a, DateTime b) => a.isBefore(b) ? a : b;