onTimelineEventAdded property
Stream<TimelineEvent>
get
onTimelineEventAdded
Sent when a performance timeline event is added. See reportPerformanceTimeline method.
Implementation
Stream<TimelineEvent> get onTimelineEventAdded => _client.onEvent
.where((event) => event.name == 'PerformanceTimeline.timelineEventAdded')
.map((event) => TimelineEvent.fromJson(
event.parameters['event'] as Map<String, dynamic>));