RedactionMatch class final
A single sensitive span reported by one redaction layer.
start is inclusive and end exclusive, so text.substring(start, end)
is the matched span.
Constructors
- RedactionMatch({required int start, required int end, required RedactionLayer layer, required String kindLabel})
-
Creates a match for the span
[start, end)found bylayer.const
Properties
- end → int
-
Exclusive end offset of the sensitive span.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- kindLabel → String
-
Human-readable classification used in the
[REDACTED:<kindLabel>]marker (e.g.'GitHub Token','PEM PRIVATE KEY').final - layer → RedactionLayer
-
The layer that produced this match.
final
- length → int
-
Length of the matched span.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start → int
-
Inclusive start offset of the sensitive span.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
overlaps(
RedactionMatch other) → bool -
Whether this span shares at least one character with
other. -
toString(
) → String -
Debug-friendly rendering: span, layer and label.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited