clone<T> method

List<T> clone<T>()

Creates a deep copy of the List, mutations to the original will not affect the copy.

Implementation

List<T> clone<T>() {
  return map((e) => _guardedCopyWith(e)).whereType<T>().toList();
}