copyWithAll method
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);