whereOrEmpty method

Iterable<T> whereOrEmpty(
  1. bool test(
    1. T element
    )
)

Implementation

Iterable<T> whereOrEmpty(bool Function(T element) test) {
  try {
    return where(test);
  } catch (e) {
    return [];
  }
}