indexOfKey method

int indexOfKey(
  1. K key, [
  2. int start = 0
])

The first index of key in this list.

Searches the list from index start to the end of the list. The first time an object o is encountered so that o == element, the index of o is returned.

Returns -1 if the key is not found.

Implementation

int indexOfKey(K key, [int start = 0]) => _list.indexOf(key, start);