void main() { var list1 = [10,20,30,40,50]; for(var i in list1) //for..in loop to print list element { print(i); //to print the number } }