RedactionStats class final

Lightweight counters tracking what a single redaction traversal redacted.

Useful for debugging ("why is my field hidden?") and observability. Each traversal owns one RedactionStats that is populated during the walk and exposed via RedactionResult or HeaderRedactionResult.

Constructors

RedactionStats()

Properties

depthLimited → int
Nodes replaced with placeholder because max depth was reached.
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasRedactions → bool
Whether any redaction was applied.
no setter
keyBased → int
Fields redacted because their key matched a sensitive/fully-masked key.
no setter
patternBased → int
Fields redacted because their value matched a content pattern (JWT, base64, binary, token prefix, etc.).
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
total → int
Total number of redacted fields.
no setter

Methods

incrementDepthLimited() → void
incrementKeyBased() → void
incrementPatternBased() → void
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