dart loops inside a class code example
Example 1: dart for in loop
void main() {
var obj = [12,13,14];
for (var prop in obj) {
print(prop);
}
}
Example 2: dart loop through object
var usrMap = {"name": "Tom", 'Email': '[email protected]'};
usrMap.forEach((k,v) => print('${k}: ${v}'));