onComplete property

Future get onComplete

Resolve when all items are complete

Returns a future that will resolve when all items in the queue have finished processing

Implementation

Future get onComplete {
  final completer = Completer();
  _completeListeners.add(completer);
  return completer.future;
}