singleWhere method

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

    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));