RxNullableTransformations<T> extension

Extensions for nullable reactive values

on

Methods

mapNotNull<R>(R mapper(T)) RxComputed<R?>

Available on Rx<T?>, provided by the RxNullableTransformations extension

Map only non-null values
whereNotNull() RxComputed<T?>

Available on Rx<T?>, provided by the RxNullableTransformations extension

Filter out null values
withDefault(T defaultValue) RxComputed<T>

Available on Rx<T?>, provided by the RxNullableTransformations extension

Provide a default value for null