Dart: Flutter: foreach Loop

9/5/2020 3:33:41 PM

A foreach loop in Dart.

*YOU CANNOT MAKE AN ASYNC CALL IN A FOREACH LOOP. YOU MUST USE A FOR LOOP


List myFavoriteFruit= ['apples', 'oranges', 'banana'];
myFavoriteFruit.forEach((fruit) {
print(fruit)
});