findKeyValue method
it returns the key of the first element predicate returns truthy for instead of the element itself.
If predicate is not provided, it returns the first element in the array.
This is equivalent to the findKey
function.
Returns the key of the first element predicate returns truthy for instead of the element itself.
Implementation
dynamic findKeyValue(Function predicate) => findKey(this, predicate);