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