Skip to content

Instantly share code, notes, and snippets.

@ritik047
Last active October 26, 2021 23:57
Show Gist options
  • Save ritik047/dfaf17ae42de75de405e1e6f4f6cd50c to your computer and use it in GitHub Desktop.
Save ritik047/dfaf17ae42de75de405e1e6f4f6cd50c to your computer and use it in GitHub Desktop.
Dart Maps
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);
}
@ritik047
Copy link
Author

Intro to Dart Maps
and syntax examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment