ETag class final
Represents an HTTP ETag entity tag for conditional requests.
An ETag is a string that uniquely identifies a specific version of a resource. It can be either strong (exact match required) or weak (semantic equivalence).
Example
final etag = ETag('abc123', false);
final weakEtag = ETag('xyz', true);
final wildcard = ETag.wildcard;
Properties
Methods
-
compare(
ETag other, bool strong) → bool - Performs a comparison between this ETag and another ETag.
-
equalizedProperties(
) → List< Object?> -
Mixin-style contract for value-based equality,
hashCode, andtoString. -
getFormattedTag(
) → String -
Returns the fully formatted ETag, including the
W/prefix for weak ETags and quotes around the tag value. -
isWildcard(
) → bool -
Returns
trueif this ETag is a wildcard. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited