smartRemoveWhere method
Removes all key-value pairs from the map that satisfy the predicate where, with behavior determined by ChangeType.
where: A function that returnstruefor elements to remove.
Implementation
void smartRemoveWhere(bool Function(K key, V value) where) {
final originalLength = value.length;
value.removeWhere(where);
if (value.length != originalLength) {
notify();
}
}