isBeforeDuration method

bool isBeforeDuration(
  1. Duration duration
)

Check if the date is before the current date

Implementation

bool isBeforeDuration(Duration duration) =>
    isBefore(DateTime.now().subtract(duration));