originalEvent property
EventRecord
originalEvent
Returns the event that was read or which triggered the subscription.
If this ResolvedEvent represents a link event, the originalEvent will be the link, otherwise it will be event.
Implementation
EventRecord get originalEvent => link ?? event;