max static method

DateTime max(
  1. DateTime left,
  2. DateTime right
)

Returns true if left isAfter than right

Implementation

static DateTime max(DateTime left, DateTime right) =>
    (left < right) ? right : left;