where method

RxComputed<T?> where(
  1. bool predicate(
    1. T value
    )
)

Implementation

RxComputed<T?> where(bool Function(T value) predicate) {
  return computed(() => predicate(value) ? value : null);
}