MaxDepthSanitizer class

Prunes nested structures beyond maxDepth. Replaces pruned nodes with a marker to signal redaction.

Implemented types
Available extensions

Constructors

MaxDepthSanitizer({int maxDepth = 8, String redactionMarker = '<redacted:depth>'})
Creates a depth limiter that replaces deep structures beyond maxDepth.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
maxDepth → int
Maximum depth allowed before structures are redacted.
final
redactionMarker → String
Marker stored in place of pruned data.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sanitize(Map<String, dynamic> data) → Map<String, dynamic>
Returns a new sanitized map. The input is never mutated.
override
sanitizeEvent(ReportEvent event) → ReportEvent

Available on Sanitizer, provided by the ReportEventSanitizer extension

Returns a copy of event with the sanitized payload embedded.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited