isTooSoon method
Implementation
bool isTooSoon() {
if (_lastTimeAlerted == null) {
return false;
}
final lastAlertedDuration = DateTime.now().difference(_lastTimeAlerted!);
final rv = lastAlertedDuration < durationUntilAlertAgain;
if (rv && debugLogging) {
if (kDebugMode) {
print('hcUpgrade: isTooSoon: true');
}
}
return rv;
}