SingleOperator<T> extension

on

Methods

single() Observable<T>
Emits the single element of this Observable, or emits TooFewError if there was no element, or emits TooManyError if there was more than 1 element.
singleOrDefault({required T tooFew, required T tooMany}) Observable<T>
Emits the single element of this Observable, or emits tooFew if there was no element, or emits tooMany if there was more than 1 element.
singleOrElse({required Map0<T> tooFew, required Map0<T> tooMany}) Observable<T>
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.