Reputation: 3025
i have a list
var lst = [ "test0" , "test1" , "test2" , "test3"];
I want to search inside this list and find the "test2" index. Is there such a function within the dart language?
//lst.find("test2") -> 2
Upvotes: 1
Views: 117