deepContains function
Uses deepEquals to check if iterable contains a given element.
Implementation
bool deepContains(Iterable l, var v) {
for (var item in l) {
if (deepEquals(v, item)) {
return true;
}
}
return false;
}
Uses deepEquals to check if iterable contains a given element.
bool deepContains(Iterable l, var v) {
for (var item in l) {
if (deepEquals(v, item)) {
return true;
}
}
return false;
}