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