Answers for "flutter foreach in map"

1

dart map foreach

void main() { 
   var usrMap = {"name": "Tom", 'Email': '[email protected]'}; 
   usrMap.forEach((k,v) {
     print('${k}: ${v}');
   }); 
}
Posted by: Guest on April-03-2021

Browse Popular Code Answers by Language