difference method Null safety

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

Creates a new set with the elements of this that are not in other.

That is, the returned set contains all the elements of this Set that are not elements of other according to other.contains.

Implementation

@override
Set<E> difference(Set<Object?> other) => _base.difference(other);