containsWhereIndexed method

List<E> containsWhereIndexed(
  1. bool f(
    1. E e,
    2. int index
    )
)

Implementation

List<E> containsWhereIndexed(bool Function(E e, int index) f) {
  var i = 0;
  return where((element) => f(element, i++)).toList();
}