Answers for "Map in dart"

10

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
4

map in dart

void main() {  
  Map person={'name':'Bijay',"age":20};
  //name and age are key and Bijay and 20 are value
  print(person);

}
Posted by: Guest on June-28-2021
1

dart map

{Usrname: tom, Password: pass@123, Uid: U1oo1}
Posted by: Guest on July-22-2021
1

flutter map

Widget build(BuildContext context) {
  return FlutterMap(
    options: MapOptions(
      center: LatLng(51.5, -0.09),
      zoom: 13.0,
    ),
    layers: [
      TileLayerOptions(
        urlTemplate: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
        subdomains: ['a', 'b', 'c']
      ),
      MarkerLayerOptions(
        markers: [
          Marker(
            width: 80.0,
            height: 80.0,
            point: LatLng(51.5, -0.09),
            builder: (ctx) =>
            Container(
              child: FlutterLogo(),
            ),
          ),
        ],
      ),
    ],
  );
}
Posted by: Guest on May-31-2021
0

what is map in dart

void main() { 
   var details = new Map(); 
   details['Username'] = 'admin'; 
   details['Password'] = 'admin@123'; 
   print(details); 
}
Posted by: Guest on June-01-2021
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