max static method

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

Returns the latest of two dates.

Implementation

static DateTime max(DateTime a, DateTime b) => a.isAfter(b) ? a : b;