singleOrElse method

Observable<T> singleOrElse (
  1. {Map0<T> tooFew,
  2. Map0<T> tooMany}
)

Emits the single element of this Observable, or evaluates the tooFew callback if there was no element, or evaluates the tooMany callback if there was more than 1 element.

Implementation

Observable<T> singleOrElse({Map0<T> tooFew, Map0<T> tooMany}) =>
    SingleObservable<T>(this, tooFew, tooMany);