loop in a list for each 10 element dart code example Example: dart loop through array for (var i = 0; i < list.length; i++) { print(list[i]); }