for loop dart in code example
Example 1: loop in dart
for (int i = 0; i < 3; i++) {
print(i);
}
Example 2: dart loop through object
var usrMap = {"name": "Tom", 'Email': '[email protected]'};
usrMap.forEach((k,v) => print('${k}: ${v}'));
for (int i = 0; i < 3; i++) {
print(i);
}
var usrMap = {"name": "Tom", 'Email': '[email protected]'};
usrMap.forEach((k,v) => print('${k}: ${v}'));