dart remove element from map code example
Example 1: flutter remove map
Map<String,Item> items;
Item item1;
..
items.removeWhere((key, value) => value == item1);
Example 2: flutter create new map
Map<String, int> map1 = {'zero': 0, 'one': 1, 'two': 2};
Map map2 = {'zero': 0, 'I': 'one', 10: 'X'};
var map3 = {'zero': 0, 'I': 'one', 10: 'X'};