assignAll method

void assignAll(
  1. Iterable<E> items
)

Replaces all existing items of this set with items.

Implementation

void assignAll(Iterable<E> items) {
  if (this is RxSet<E>) {
    (this as RxSet<E>)._assignAll(items);
  } else {
    if (identical(this, items)) return;
    final nextItems = List<E>.of(items);
    clear();
    addAll(nextItems);
  }
}