NotifiableSet<E>.of constructor

NotifiableSet<E>.of(
  1. Iterable<E> elements, {
  2. dynamic propagateNotification = true,
})

Create a NotifiableSet by adding all elements of elements of type E.

If propagateNotification is true (default value), this NotifiableList will notify all its listeners when a child notify its listeners as well.

Implementation

NotifiableSet.of(Iterable<E> elements, {propagateNotification = true})
    : super() {
  _values = Set<E>.of(elements);
  this.propagateNotification = propagateNotification;
  if (_propagateNotification) _startPropagateNotification();
}