indexOf method
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');