hasAggregatedEvents method
Get whether this event has aggregated events from a certain type
To be able to do that you need to pass a timeline
Implementation
bool hasAggregatedEvents(Timeline timeline, String type) =>
timeline.aggregatedEvents[eventId]?.containsKey(type) == true;