RxTransformations<T> extension

Transformation extensions for reactive values

on

Methods

asNullable() RxComputed<T?>

Available on Rx<T>, provided by the RxTransformations extension

Convert to nullable type
combineLatest<U, R>(Rx<U> other, R combiner(T, U)) RxComputed<R>

Available on Rx<T>, provided by the RxTransformations extension

Combine with another reactive value
distinctMap<R>(R mapper(T)) RxComputed<R>

Available on Rx<T>, provided by the RxTransformations extension

Create a reactive value that only updates when the mapped value changes
filter(bool predicate(T)) RxComputed<T?>

Available on Rx<T>, provided by the RxTransformations extension

Filter values based on a predicate
skip(int count) RxComputed<T?>

Available on Rx<T>, provided by the RxTransformations extension

Skip the first n values
switchMap<R>(RxComputed<R> mapper(T)) RxComputed<R>

Available on Rx<T>, provided by the RxTransformations extension

Switch to a new reactive value based on current value
take(int count) RxComputed<T?>

Available on Rx<T>, provided by the RxTransformations extension

Take the first n values
transform<R>(R mapper(T)) RxComputed<R>

Available on Rx<T>, provided by the RxTransformations extension

Transform this reactive value to another type
whereNotNull([T? defaultValue]) RxComputed<T>

Available on Rx<T>, provided by the RxTransformations extension

Handle null values with a default