remove() for maps in dart code example
Example: flutter remove map
Map<String,Item> items;
Item item1;
..
items.removeWhere((key, value) => value == item1);
Map<String,Item> items;
Item item1;
..
items.removeWhere((key, value) => value == item1);