unorderedEqualItems method

bool unorderedEqualItems(
  1. covariant Iterable? other
)

Will return true only if the IList and the iterable items have the same number of elements, and the elements of the IList can be paired with the elements of the iterable, so that each pair is equal. This may be slow for very large lists, since it compares each item, one by one.

Implementation

bool unorderedEqualItems(covariant Iterable? other) {
  if (other == null) return false;
  if (identical(this, other) || (other is IList<T> && same(other))) return true;
  return const UnorderedIterableEquality<dynamic>().equals(_l, other);
}