isFuture method

bool isFuture()

Returns true if the DateTime object represents a date in the future.

Implementation

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