OpaqueInternalContext class
An internal context carried through beforeSend verbatim because this
version has no model for it. Every copy in and out is deep, so a callback
cannot reach into SDK-owned data through a shared nested map or list.
- Inheritance
-
- Object
- InternalContext
- OpaqueInternalContext
Constructors
- OpaqueInternalContext(dynamic json)
-
jsonis whatever the SDK sent — normally a map, but a scalar or list is carried just as faithfully rather than costing the event. event mirrors the payload's discriminator (stringified if it is not a string, empty when there is none), so it can never disagree with what ships.
Properties
- event → String
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- rawValue → dynamic
-
A deep copy of the payload — mutating what comes back cannot change what
is sent. Null when this context was built in Dart rather than parsed.
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
-
toJson(
) → Map< String, dynamic> -
The typed view, for reading. Programmatically-built contexts have no raw
payload, so this is also what ships for them.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
toWireValue(
) → dynamic -
An opaque context always carries a payload, even a null one — unlike a
typed context built in Dart, which has none and falls back to toJson.
Overriding here keeps that distinction unambiguous without a sentinel.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited