Dart: Collection Maps Cheat Sheet

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

=> output

{Usrname: admin, Password: [email protected]} 

Leave a Reply

Your email address will not be published. Required fields are marked *