pendingRequestsCountStream property
Implementation
Stream<int> get pendingRequestsCountStream async* {
// A simple stream that emits count - ideally we should observe the box/DB.
while (true) {
final reqs = await getPendingRequests();
yield reqs.length;
await Future.delayed(const Duration(seconds: 1));
}
}