Stream.empty const constructor

const Stream.empty()

Creates an empty broadcast stream.

This is a stream which does nothing except sending a done event when it's listened to.

Source

const factory Stream.empty() = _EmptyStream<T>;

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-async/Stream/Stream.empty.html