mirror of
https://github.com/Fechin/reference.git
synced 2026-11-20 21:23:11 +03:00
added
This commit is contained in:
1 parent
7ff0751ac5
commit
51c28c8e98
1 file changed
+1
-1
@@ -276,7 +276,7 @@ Set<String> names = {}; // This works, too.
|
||||
// a map is an object that associates keys and values
|
||||
var person = Map<String, String>();
|
||||
// To initialize the map, do this:
|
||||
person['firstName'] = 'Nicola';
|
||||
|
||||
person['lastName'] = 'Tesla';
|
||||
|
||||
print(person); //Print: {firstName: Nicola, lastName: Tesla}
|
||||
|
||||
Reference in new issue
Block a user