The for-in loop is used to iterate over elements of collections like lists, sets, or maps.

for (var item in collection) {
  // code to be executed
}

void main() {
  List<String> fruits = ['Apple', 'Banana', 'Orange'];
  for (var fruit in fruits) {
    print('I like $fruit');
  }
}