isTooSoon method

bool isTooSoon()

Implementation

bool isTooSoon() {
  if (_lastTimeAlerted == null) {
    return false;
  }

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