where method

  1. @override
ImmortalList<T> where(
  1. bool predicate(
    1. T value
    )
)
override

Returns a new list with all elements of this list that satisfy the given predicate.

The matching elements have the same order in the returned list as they have in iterator.

Implementation

@override
ImmortalList<T> where(bool Function(T value) predicate) =>
    ImmortalList(_list.where(predicate));