equalItemsAndConfig method

  1. @override
bool equalItemsAndConfig(
  1. IMapOfSets other
)
override

Will return true only if the list items are equal, and the map of sets configurations (ConfigMapOfSets) are equal. This may be slow for very large maps, since it compares each item, one by one.

Implementation

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

  return config == other.config &&
      (identical(_mapOfSets, other._mapOfSets) || _mapOfSets.equalItemsToIMap(other._mapOfSets));
}