SetDiff<T>.fromISets constructor

SetDiff<T>.fromISets({
  1. required ISet<T> before,
  2. required ISet<T> after,
})

Implementation

factory SetDiff.fromISets({
  required ISet<T> before,
  required ISet<T> after,
}) {
  return SetDiff(
    added: after.removeAll(before),
    removed: before.removeAll(after),
  );
}