addAllIf method
Adds all items from another list to a list if a condition is met.
Parameters
condition: The condition to checkitems: The items to add
Implementation
void addAllIf(ConditionTester<T> condition, Iterable<T> items) {
if(all(condition)) {
addAll(items);
}
}