void main() {
var dict = {
'a': 'dart',
'b': 'rust',
'c': 'c',
'd': 'c++',
'e': 'java'
};
print('Key Value:');
dict.forEach((key, value) => print('$key - $value'));
print('\nKeys:');
dict.keys.forEach((key) => print(key));
print('\nValues:');
dict.values.forEach((value) => print(value));
}
/*
run:
Key Value:
a - dart
b - rust
c - c
d - c++
e - java
Keys:
a
b
c
d
e
Values:
dart
rust
c
c++
java
*/