getReplyEvent method

Future<Event?> getReplyEvent(
  1. Timeline timeline
)

Searches for the reply event in the given timeline.

Implementation

Future<Event?> getReplyEvent(Timeline timeline) async {
  if (relationshipType != RelationshipTypes.reply) return null;
  final relationshipEventId = this.relationshipEventId;
  return relationshipEventId == null
      ? null
      : await timeline.getEventById(relationshipEventId);
}