findIndex function
- List array,
- dynamic element
This method uses dart's default List.indexOf Example
_.findIndex(["Jack", "Yash", "Adib", "Alex"], "Adib");
// Returns 2
Implementation
int findIndex(List array, dynamic element) {
return array.indexOf(element);
}