operator == method

  1. @override
bool operator ==(
  1. Object other
)
override

Deep equality.

A BuiltSet is only equal to another BuiltSet with equal elements in any order.

Implementation

@override
bool operator ==(Object other) {
  if (identical(other, this)) return true;
  if (other is! BuiltSet) return false;
  if (other.length != length) return false;
  if (other.hashCode != hashCode) return false;
  return containsAll(other);
}