In dart there any equivalent to the common:
enumerate(List) -> Iterator((index, value) => f)
or
List.enumerate() -> Iterator((index, value) =>
Use asMap to convert List to map first. The index of element is the key. The element becomes value. Use entries to map the key and value to anything you want.
List rawList = ["a", "b", "c"];
List argList = rawList.asMap().entries.map((e) => '${e.key}:${e.value}').toList();
print(argList);
Output:
[0:a, 1:b, 2:c]