how to get the index of a value in map dart 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;
}