Answers for "array of maps dart"

12

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
1

dart list of maps

var orderLines = <Map>[]; // creates an empty List<Map>

orderLines.add({ 'number'  : '',
              'Item' : '',
              'Qty'  : ''
             });
Posted by: Guest on October-25-2020
0

dart map

void main() { 
   var details = {'Usrname':'tom','Password':'pass@123'}; 
   details['Uid'] = 'U1oo1'; 
   print(details); 
}
Posted by: Guest on July-22-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language