mirrored_repositories/SMIT-Flutter
/*
Q.10: Write a Dart code that takes in a list of strings and removes any duplicate elements, returning a new list without duplicates. The order of elements in the new list should be the same as in the original list.

*/
void main() {
  List<String> originalList = [
    'apple',
    'banana',
    'orange',
    'banana',
    'grape',
    'apple'
  ];

  List<String> newList = originalList.toSet().toList();

  print("Original List: $originalList");
  print("New List without duplicates: $newList");
}
