I want to remove duplicate items but didnt found any method
List items = data
.where((test) =>
test["title"].toLowerCase().contains(query.toLowerCase()) ||
test["ingredients"].toLowerCase().contains(query.toLowerCase()) ||
test["keywords"].toLowerCase().contains(query.toLowerCase()) ||
test["author"].toLowerCase().contains(query.toLowerCase())).toSet()
.toList();
here is the output with duplication
[{ingredients:plus extra for rolling out (we like Wrights), keywords: Bread, author: Good Food, title: Spicy pizza, recipe_ID: 28}, {ingredients: plus extra for rolling out (we like Wrights), keywords: Indian, author: Good Food, title: Spicy pizza, recipe_ID: 28}, {ingredients:plus extra for rolling out (we like Wrights), keywords: Midweek, author: Good Food, title: Spicy pizza, recipe_ID: 28}]
so i want to remove these duplicate items,is there any method like distinct?