aggregatedEvents method
Get all the aggregated event objects for a given type
. To be able to do this
you have to pass a timeline
Implementation
Set<Event> aggregatedEvents(Timeline timeline, String type) =>
timeline.aggregatedEvents[eventId]?[type] ?? <Event>{};