retainWhere method

void retainWhere(
  1. bool test(
    1. T
    )
)

Retain where (convenience method)

Implementation

void retainWhere(bool Function(T) test) {
  final result = tryRetainWhere(test);
  if (result.isFailure) {
    RxLogger.logError(result.errorOrNull!, context: 'Set');
  }
}