replace method

void replace(
  1. Iterable iterable
)

Replaces all elements with elements from an Iterable.

Implementation

void replace(Iterable iterable) {
  if (iterable is _BuiltList<E>) {
    _setOwner(iterable);
  } else {
    _setSafeList(List<E>.from(iterable));
  }
}