dart list map index

58

myList.asMap().entries.map((entry) {
    int idx = entry.key;
    String val = entry.value;
    return something;
}
list.asMap().entries.map((e) {
      var index = e.key;
      var value = e.value;
      // ...
    }
userBoard.map((element) {
  // get index
  var index = userBoard.indexOf(element);
  return Container(

  );
}).toList()

Comments

Submit
0 Comments