Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

flutter map key/value

void main() {
  final testMap = {"a": 1, "b": 2, "c": 3, "d": 4, "e": 5};
  for (final mapEntry in testMap.entries) {
    final key = mapEntry.key;
    final value = mapEntry.value;
    print('Key: $key, Value: $value');  // Key: a, Value: 1 ...
  }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #flutter #map
ADD COMMENT
Topic
Name
9+9 =