findIndexes<B> method

Iterable<int> findIndexes<B>(
  1. List<B> value,
  2. bool test(
    1. E a,
    2. B b
    )
)

Implementation

Iterable<int> findIndexes<B>(
  List<B> value,
  bool Function(E a, B b) test,
) {
  return map((a) {
    return value.indexWhere((b) => test(a, b));
  }).where((e) => e > -1);
}