deepCopy method

List<T> deepCopy({
  1. bool growable = true,
})

Returns a new List that contains a deep copy of every element from this.

Implementation

List<T> deepCopy({bool growable = true}) {
  return map(_deepCopy).toList(growable: growable);
}