max method

DateTime max(
  1. DateTime that
)

Returns the maximum of this DateTime and that.

Implementation

DateTime max(DateTime that) =>
    (millisecondsSinceEpoch > that.millisecondsSinceEpoch) ? this : that;