relationshipEventId property

String? get relationshipEventId

Get the event ID that this relationship will reference and null if there is none. This could for example be the thread root, the original event for an edit or the event, this is an reaction for. For replies please use Event.inReplyToEventId() instead!

Implementation

String? get relationshipEventId => content
    .tryGetMap<String, Object?>('m.relates_to')
    ?.tryGet<String>('event_id');