Answers for "dart for 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
11

Map in dart

void main() { 
   var details = new Map(); 
   details['Usrname'] = 'admin'; 
   details['Password'] = 'admin@123'; 
   print(details); 
} 

// Output
// {Usrname: admin, Password: admin@123}
Posted by: Guest on October-22-2020
0

dart map

void main() { 
   var details = new Map(); 
   details['Usrname'] = 'admin'; 
   details['Password'] = 'admin@123'; 
   print(details); 
}
Posted by: Guest on July-22-2021

Browse Popular Code Answers by Language