Adds all values to list.
values
list
void addAllToList(List list, Object? values) { if (values == null) return; if (values is List) { list.addAll(values); } else { list.add(values); } }