W3cubDocs

/Dart 2

Stream<T>.empty constructor

const Stream<T>.empty()

Creates an empty broadcast stream.

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

Implementation

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/2.0.0/dart-async/Stream/Stream.empty.html