getSetDifference<T> function
Returns the difference between two sets.
Implementation
Set<T> getSetDifference<T>(Set<T> before, Set<T> after) {
final results = <T>{};
for (final a in after) {
if (!before.contains(a)) results.add(a);
}
return results;
}