Extracts and formats network diagnostics for console and UI presentation.
Structured URL and payload data is reused from the capture-time snapshot; headline message text retains its outbound redaction pass.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
displayUrl(
ISpectLogData entry) → String? - Returns a display URL assembled from the trace target and normalized request query parameters.
-
hintsFor(
{required bool printBody, bool? printHeaders, bool? printMessage}) → Map< String, bool> - Builds the value stored under renderHintsKey.
-
isNetworkLog(
ISpectLogData entry) → bool -
Whether
entryis a network or WS log this renderer can format. -
payload(
ISpectLogData entry) → NetworkLogPayload? - Returns the payload represented by this log's role.
-
renderBody(
ISpectLogData entry) → String -
Builds the renderable body for
entry. See the class doc for the contract. -
renderHeadline(
ISpectLogData entry) → String - Returns the entry headline with separately captured query parameters appended to its URL.
-
requestPayload(
ISpectLogData entry) → NetworkLogPayload? - Returns the request payload embedded in a request, response, or error log.
-
responsePayload(
ISpectLogData entry) → NetworkLogPayload? - Returns the response payload embedded in a response or error log.
Constants
- hintPrintBody → const String
-
Hint key: render the request/response/error body block. Default
true. - hintPrintHeaders → const String
-
Hint key: render the headers block. Default
false. - hintPrintMessage → const String
-
Hint key: render status / error message line. Default
false. - renderHintsKey → const String
- Private additionalData key carrying per-entry render preferences set by the interceptor: a Map<String, bool> with keys hintPrintBody, hintPrintHeaders, hintPrintMessage. Kept out of the public NetworkJsonKeys namespace since this is presentation metadata, not a structural field. The leading underscore marks it as private convention; downstream consumers (UI, exports) may filter it out.