Removing duplicate items in the list and getting their number Dart Flutter
I have a list of objects and I want to remove duplicates and also add the number of removed items to the remaining item in the list. var data = [ { name: "book", qty: 1 }, { name: "book"…