indicesWhere method

List<int> indicesWhere(
  1. bool predicate(
    1. num
    )
)
inherited

The indices of the values that meet predicate.

Implementation

List<int> indicesWhere(bool Function(External) predicate) => [
      for (var i = 0; i < length; i++)
        if (predicate(this[i])) i
    ];