Dart Indexof

[1,2,2].indexOf(2); // 1
[1,2,2].indexOf(3); // -1 (not found)
just-saved-you-a-stackoverflow-visit