intersection method
Creates a new Database
which is the intersection between this
Database
and other
.
That is, the returned Database
contains all the records of this
Database
that are also elements of other
according to
other.contains
.
Implementation
@override
TableSet<E> intersection(Set<Object?> other) {
final result = TableSet<E>()..addAll(this);
result.where(not(other.contains)).forEach(result.remove);
return result;
}