Dart for in Loop

void main() {
  var obj = [10, 20, 30, 40];
  for (var x in obj) {
    print(x);
  }
}

o/p:

10

20

30

40