What is a Dart idiomatic way to remove selected keys from a card? Below I use a temporary pool of List to store String keys. Is there a cleaner way?
List<String> emptyList = new List<String>(); _objTable.keys.forEach((String name) { if (_objTable[name].indices.isEmpty) { emptyList.add(name); print("OBJ: deleting empty object=$name loaded from url=$url"); } }); emptyList.forEach((String name) => _objTable.remove(name));
dart map
Everton
source share