In Dart, the List class has 4 methods that can help you find the index of a specific element in a list: indexOf: Returns the first index of the first element in the list that equals to a given element. Returns -1 if nothing found. indexWhere: Returns the first index in the list that satisfies the given conditions.27 Tem 2021