min method

DateTime min(
  1. DateTime that
)

Returns the minimum of this DateTime and that.

Implementation

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