copyWith method
Copy current list with adding element
at the end of new list.
If current list is null
- new list with element
will be created.
Implementation
List<E> copyWith(E element) => List.from(this)..add(element);
Copy current list with adding element
at the end of new list.
If current list is null
- new list with element
will be created.
List<E> copyWith(E element) => List.from(this)..add(element);