compareAsSets method

bool compareAsSets(
  1. List other
)

Return true if the lists contain the same items (in any order). Ignores repeated items.

Implementation

bool compareAsSets(List other) {
  if (identical(this, other)) return true;
  return const SetEquality<dynamic>(MapEntryEquality<dynamic>()).equals(
    Set<dynamic>.of(this),
    Set<dynamic>.of(other),
  );
}