indexOf() The first index of element in this list. Searches the list from index start to the end of the list. Example void main() { var nums = [1, 2, 3, 4, 5, 6]; var p = nums.indexOf(4); print(p); print(nums.indexOf(2)); } 3 1 Exited.
jeetbhalu.hashnode.dev1 min read
No responses yet.