nextDueAt property

int? get nextDueAt

Earliest time an event is due whose handler is bound; null when nothing is scheduled. Events waiting for a handler do not count (an open but idle subscription must not hold replay busy).

Implementation

int? get nextDueAt {
  int? next;
  for (final r in _pending) {
    if (!_handlers.containsKey(r.scope)) continue;
    final due = r.dueAt!;
    if (next == null || due < next) next = due;
  }
  return next;
}