Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

dart loop through map

main() {
  var numMap = Map();
  numMap["one"] = 1;
  numMap["two"] = 2;
  numMap["three"] = 3;
  numMap["four"] = 4;
  numMap["five"] = 5;

  numMap.forEach((k, v) => print("Key : $k, Value : $v"));
}
Source by www.codevscolor.com #
 
PREVIOUS NEXT
Tagged: #dart #loop #map
ADD COMMENT
Topic
Name
4+2 =