isAheadByDays method

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

Return true if the date is ahead of other by days, false otherwise.

Implementation

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