how to get the current index of a list in dart in a forEach loop code example
Example: flutter foreach with index
List _sample = ['a','b','c'];
_sample.asMap().forEach((index, value) => f);
List _sample = ['a','b','c'];
_sample.asMap().forEach((index, value) => f);