isBehindByDays method

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

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

Implementation

bool isBehindByDays(DateTime other, int days) =>
    difference(other).inDays <= -days;