assign method

void assign(
  1. E item
)

Replaces all existing items of this set with item.

Implementation

void assign(E item) {
  if (this is RxSet<E>) {
    (this as RxSet<E>)._assign(item);
  } else {
    clear();
    add(item);
  }
}