Following the map, having both key-value pair as dynamic, Write a logic to filter all the null values from Map without us?
Is there any other approach than traversin
I suggest you to use removeWhere function
Map map = { '1': 'one', '2': null, '3': 'three' }; map.removeWhere((key, value) => key == null || value == null); print(map);