mapNotNull<R> method
Map only non-null values
Implementation
RxComputed<R?> mapNotNull<R>(R Function(T) mapper) {
return computed(() {
final val = value;
return val != null ? mapper(val) : null;
});
}
Map only non-null values
RxComputed<R?> mapNotNull<R>(R Function(T) mapper) {
return computed(() {
final val = value;
return val != null ? mapper(val) : null;
});
}