singleWhere method

  1. @override
AsObservableFuture<T> singleWhere (bool test(T element), { T orElse() })

Finds the single element in this stream matching test.

Like lastWhere, except that it is an error if more than one matching element occurs in this stream.

Implementation

@override
AsObservableFuture<T> singleWhere(bool test(T element), {T orElse()}) =>
    AsObservableFuture<T>(_stream.singleWhere(test, orElse: orElse));