xxxxxxxxxx
// A row of fruit
List<String> fruitBowl = ["apple", "banana", "pear", "orange", "banana", "apple"];
// fruitRow = [apple, banana, pear, orange, banana, apple]
// Eat all of the bananas
fruitRow.removeWhere((fruitItem) => fruitItem == "banana");
// fruitRow = [apple, pear, orange, apple]
// Now eat the first apple
fruitRow.remove("apple"); // fruitRow = [pear, orange, apple]
// Now eat the second piece of fruit (index = 1)
fruitRow.removeAt(1); // fruitRow = [pear, apple]