array/find_index library

Functions

findIndex<T>(List<T> array, [Predicate<T>? predicate, int fromIndex = 0]) int
Returns the index of the first element in the list that satisfies the provided predicate function. If no such element is found, returns -1.