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 StrongEtag) {
    return tag == other.tag;
  } else if (other is String) {
    return tag == StrongEtag.parse(other).tag;
  } else {
    return false;
  }
}