In Javascript, it's easy to map through a list with the value and index. In Dart, you only get the value, but not the index.
One of the top results on Google for this issue is this StackOverflow post from 2 years ago: https://stackoverflow.com/questions/54898767/enumerate-or-map-through-a-list-with-index-and-value-in-dart.
They