smartRemove method

bool smartRemove(
  1. Object? value
)

Removes the first occurrence of the given value from the list, with behavior determined by ChangeType.

  • value: The element to remove.
  • Returns: true if the element was removed, false otherwise.

Implementation

bool smartRemove(Object? value) {
  final removeResult = this.value.remove(value);
  if (removeResult) {
    notify();
  }
  return removeResult;
}