nextFireTime property

int? get nextFireTime

Epoch ms of the soonest scheduled fire, or null if nothing is scheduled.

Implementation

int? get nextFireTime {
  int minVal = -1 >>> 1; // max int
  bool found = false;
  for (final t in _nextFireAt.values) {
    if (t < minVal) {
      minVal = t;
      found = true;
    }
  }
  return found && minVal < (-1 >>> 1) ? minVal : null;
}