listSubtractAll<T> function
Subtract all elements that are in sublist
Implementation
List<T> listSubtractAll<T>(Iterable<T> original, Iterable<T> sublist) {
if (original.isEmpty) {
return [];
}
List<T> result = List.from(original);
for (T v in listNub(sublist)) {
result.removeWhere((element) => deepEquals(element, v));
}
return result;
}