equals method

bool equals(
  1. Set<T> other
)

Determines if the contents of this set and other are equal.

Implementation

bool equals(Set<T> other) => identical(this, other) || (length == other.length && containsAll(other));