indexWhere method

int indexWhere(
  1. bool test(
    1. IndexedNode element
    ), [
  2. int start = 0
])
override

Get the index of the first child node that matches the criterion in the test. An optional start index can be provided to ignore any nodes before the index start

Implementation

int indexWhere(bool Function(IndexedNode element) test, [int start = 0]) {
  return children.indexWhere(test, start);
}