emitsDone top-level property Null safety

StreamMatcher emitsDone
final

Returns a StreamMatcher that asserts that the stream emits a "done" event.

Implementation

final emitsDone = StreamMatcher(
    (queue) async => (await queue.hasNext) ? '' : null, 'be done');