pendingRequestsCountStream property

Stream<int> get pendingRequestsCountStream

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));
   }
}