min method

DateTime min(
  1. DateTime other
)

Returns the earliest date

Implementation

DateTime min(DateTime other) {
  return (millisecondsSinceEpoch < other.millisecondsSinceEpoch)
      ? this
      : other;
}