operator == method

  1. @override
bool operator ==(
  1. Object other
)
override

Equal if this and other have the same generic type and either both are any records or both are not any records and have the same list of entries.

E.g. ChangeRecords

List of records checked with deep comparison.

Implementation

@override
bool operator ==(Object other) =>
    identical(this, other) ||
    other is ChangeRecords &&
        runtimeType == other.runtimeType &&
        ((_isAny && other._isAny) ||
            (!_isAny &&
                !other._isAny &&
                _listEquals.equals(_delegate, other._delegate)));