dart get index from map function code example
Example: get index of element in map dart
myList.asMap().entries.map((entry) {
int idx = entry.key;
String val = entry.value;
return something;
}
myList.asMap().entries.map((entry) {
int idx = entry.key;
String val = entry.value;
return something;
}