This commit is contained in:
Roshan pcy committed 2024-05-30 08:56:09 +05:30
1 parent 7ff0751ac5
commit 51c28c8e98
1 file changed
+1 -1
+1 -1
View File
@@ -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}