equalItemsAndConfig method

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

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

Implementation

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

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

  return config == other.config &&
      (identical(_m, other._m) || (flush._m as MFlat).deepMapEquals(other.flush._m as MFlat));
}