isFuture property

bool get isFuture

Returns true if the date is in the future.

Example:

DateTime(2030, 1, 1).isFuture; // true

Implementation

bool get isFuture => isAfter(DateTime.now());