min method

DateTime min()

Calculates the oldest date in the DateTime list.

DateTimeのリストの中で一番古い日付を算出します。

Implementation

DateTime min() {
  return DateTime.fromMicrosecondsSinceEpoch(
    map((e) => e.microsecondsSinceEpoch).reduce((a, b) => a < b ? a : b),
  );
}