Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

collection for in dart

var listOfInts = [1, 2, 3];
var listOfStrings = ['#0', for (var i in listOfInts) '#$i'];
assert(listOfStrings[1] == '#1');
Source by dart.dev #
 
PREVIOUS NEXT
Tagged: #collection #dart
ADD COMMENT
Topic
Name
5+2 =