smartRemove method
Removes the first occurrence of the given value from the list, with behavior determined by ChangeType.
value: The element to remove.- Returns:
trueif the element was removed,falseotherwise.
Implementation
bool smartRemove(Object? value) {
final removeResult = this.value.remove(value);
if (removeResult) {
notify();
}
return removeResult;
}