for in loops dart code example
Example 1: loop in dart
for (int i = 0; i < 3; i++) {
print(i);
}
Example 2: dart for in loop
void main() {
var obj = [12,13,14];
for (var prop in obj) {
print(prop);
}
}
for (int i = 0; i < 3; i++) {
print(i);
}
void main() {
var obj = [12,13,14];
for (var prop in obj) {
print(prop);
}
}