deleteElement<T extends dynamic> static method
Implementation
static Map<int,T> deleteElement<T extends dynamic>(Map<int,T> map, int id){
final newMap = Map.from(map);
newMap.remove(id);
return newMap as Map<int, T>;
}