equalItemsAndConfig method

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

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

Implementation

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

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

  return config == other!.config &&
      (identical(_l, other._l) || (flush._l as LFlat).deepListEquals(other.flush._l as LFlat));
}