indexOf method

int indexOf(
  1. covariant T element,
  2. [int start = 0]
)

Returns the index of the first occurrence of the specified element in this collection, or -1 if the collection does not contain the element.

Implementation

int indexOf(covariant T element, [int start = 0]) => _indexOf(element, start, 'indexOf');