equals method

  1. @override
bool equals(
  1. Object? other
)
override

Implementation

@override
bool equals(Object? other) {
  if (identical(this, other)) return true;

  if (other is WeakEtag) {
    return _valuesEquality.equals(values, other.values);
  } else if (other is String) {
    return _valuesEquality.equals(values, WeakEtag.parse(other).values);
  } else {
    return false;
  }
}