PyrxEventEnvelope class

Single wire envelope for the 7-event observer surface. Exactly one of the *Payload fields is non-null per envelope, matching kind.

We use a flat-fields envelope instead of a Dart sealed class so Pigeon's codec stays straightforward — Pigeon does not yet support sealed-class generation across all three target languages.

Constructors

PyrxEventEnvelope({required PyrxEventKind kind, PushReceivedEventDto? pushReceived, PushClickedEventDto? pushClicked, PushReceivedEventDto? pushReceivedColdStart, QueueDrainedEventDto? queueDrained, IdentityChangedEventDto? identityChanged, InAppMessageReceivedEventDto? inAppMessageReceived, InAppMessageDismissedEventDto? inAppMessageDismissed})

Properties

hashCode int
The hash code for this object.
no setteroverride
identityChanged IdentityChangedEventDto?
getter/setter pair
inAppMessageDismissed InAppMessageDismissedEventDto?
getter/setter pair
inAppMessageReceived InAppMessageReceivedEventDto?
getter/setter pair
kind PyrxEventKind
getter/setter pair
pushClicked PushClickedEventDto?
getter/setter pair
pushReceived PushReceivedEventDto?
getter/setter pair
pushReceivedColdStart PushReceivedEventDto?
getter/setter pair
queueDrained QueueDrainedEventDto?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

encode() Object
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.
override

Static Methods

decode(Object result) PyrxEventEnvelope