assign method
void
assign(
- E item
Replaces all existing items of this list with item
.
Clears the list and adds item
.
Implementation
void assign(E item) {
if (this is RxList) {
(this as RxList).value.clear();
}
add(item);
}