reduceFuture static method

DateTime reduceFuture(
  1. DateTime value,
  2. DateTime element
)

Reduces a list of dates to the oldest date.

Implementation

static DateTime reduceFuture(DateTime value, DateTime element) {
  return value.isBefore(element) ? value : element;
}