isAfterInRange method

bool isAfterInRange(
  1. int acceptableRangeInSeconds,
  2. DateTime? date
)

Implementation

bool isAfterInRange(int acceptableRangeInSeconds, DateTime? date) {
  if (date == null || this.isBefore(date)) {
    return false;
  }
  return this.difference(date).inSeconds <= acceptableRangeInSeconds;
}