Gets the later of the two given dates.
Requires both dates to be non-null.
Date? laterOf(Date a, Date? b) => a.isAfter(b) ? a : b;