copyWithAll method

List<E> copyWithAll(
  1. List<E> elements
)

Copy current list with adding all elements at the end of new list.

If current list is null - copy of list elements will be created.

Implementation

List<E> copyWithAll(List<E> elements) =>
    this?.copyWithAll(elements) ?? List.from(elements);