
Dart How to remove duplicates by key-values in object list (Distinct)
list.toSet method doesn't work as expected for an object list to get unique object list? Then, let's add index parameter to the callback of list.where so that we can remove duplicates by key-values.