whereResult method

Result<List<T>> whereResult(
  1. bool test(
    1. T item
    )
)

Alias for filter that reads more naturally next to mapList.

Implementation

Result<List<T>> whereResult(bool Function(T item) test) => filter(test);