Last active
October 26, 2021 23:57
-
-
Save ritik047/dfaf17ae42de75de405e1e6f4f6cd50c to your computer and use it in GitHub Desktop.
Dart Maps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Map<String ,int>phoneBook = { | |
'Kyle':1231313, | |
'abcd':51222, | |
'qwea':51222, | |
}; | |
main(){ | |
print(phoneBook['Angelea']); | |
print(phoneBook['Kyle']); | |
phoneBook['Angelea']=521; | |
print(phoneBook['Angelea']); | |
print(phoneBook.length); | |
print(phoneBook.values); | |
print(phoneBook.keys); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Intro to Dart Maps
and syntax examples