intersection method

  1. @override
Set<E> intersection(
  1. Set<Object?> other
)
override

Returns a new set containing elements present in both this set and other.

This is a non-mutating operation that creates a new set.

Implementation

@override
Set<E> intersection(Set<Object?> other) => value.intersection(other);