Dapatkan indeks elemen di peta dart

myList.asMap().entries.map((entry) {
    int idx = entry.key;
    String val = entry.value;

    return something;
}
Strange Sloth