isFuture static method
Returns whether date is in the future (after today, time-ignored).
Implementation
static bool isFuture(DateTime date) {
final DateTime today =
DateTime(DateTime.now().year, DateTime.now().month, DateTime.now().day);
return DateTime(date.year, date.month, date.day).isAfter(today);
}