Observable<T>.empty constructor

Observable<T>.empty()

Creates an Observable that contains no values.

No items are emitted from the stream, and done is called upon listening.

Example

new Observable.empty().listen(
  (_) => print("data"), onDone: () => print("done")); // prints "done"

Implementation

factory Observable.empty() => Observable<T>((Stream<T>.empty()));