Clear and add all elements of List items to the list.
items
void clearAndAddAll(List<T> items) { if (isEmpty && items.isEmpty) return; clear(); addAll(items); }