isAheadByDays method

bool isAheadByDays(
  1. DateTime other,
  2. int days
)

Returns true if this date is at least days days ahead of other.

Implementation

bool isAheadByDays(DateTime other, int days) =>
    difference(other).inDays >= days;