array/index_of library

Functions

indexOf<T>(List<T> array, T value, [int fromIndex = 0]) int
Gets the index at which the first occurrence of value is found in the array using SameValueZero for equality comparisons. If fromIndex is negative, it's used as the offset from the end of the array.