add method

  1. @override
bool add(
  1. T value
)

from here all functions are equal to Set<T> with the addition that all modifying functions will call notifyListener if not in a transaction.

Implementation

@override
bool add(T value) {
  final wasAdded = super.add(value);
  _hasChanged = wasAdded;
  _notify();
  return wasAdded;
}