copyWithInsertAll method
Copy current list with adding all elements
at the position of new list.
If current list is null
- copy of list elements
will be created.
Error throwed due to a value being outside a valid range.
Implementation
List<E> copyWithInsertAll(int index, List<E> elements) =>
this?.copyWithInsertAll(index, elements) ?? List.from(elements);