equalItemsAndConfig method

  1. @override
bool equalItemsAndConfig(
  1. ISet? other
)
override

Will return true only if the set items are equal and the set configurations are equal. This may be slow for very large sets, since it compares each item, one by one.

Implementation

@override
bool equalItemsAndConfig(ISet? other) {
  if (identical(this, other)) return true;

  // Objects with different hashCodes are not equal.
  if (_isUnequalByHashCode(other)) return false;

  return config == other!.config &&
      (identical(_s, other._s) || (flush._s as SFlat).deepSetEquals(other.flush._s as SFlat));
}