addToSet method
void
addToSet(
- T value
Adds value to the list only if it does not already exist.
Implementation
void addToSet(T value) {
if (!contains(value)) add(value);
}
Adds value to the list only if it does not already exist.
void addToSet(T value) {
if (!contains(value)) add(value);
}