smartRemove method
Removes the given value from the set and notifies listeners if the set changed.
value: The element to remove.- Returns:
trueif the element was removed,falseotherwise.
Implementation
bool smartRemove(Object? value) {
final result = this.value.remove(value);
if (result) {
notify();
}
return result;
}