single property

  1. @override
ObservableFuture<T> single
override

The single element of this stream.

If this stream emits an error event, the returned future is completed with that error and processing stops.

If this is empty or has more than one element, the returned future completes with an error.

Implementation

@override
ObservableFuture<T> get single => _wrapFuture(_controller.stream.single);