assign method

void assign(
  1. E item
)

Replaces all existing items of this list with item

Implementation

void assign(E item) {
  // if (this is RxList) {
  //   (this as RxList)._value;
  // }

  clear();
  add(item);
}