max method

DateTime max()

Calculates the most recent date in the DateTime list.

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

Implementation

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