isFuture static method

bool isFuture(
  1. DateTime date
)

Check if a date is in the future

Implementation

static bool isFuture(DateTime date) {
  return date.isAfter(DateTime.now());
}