getAnnotationsForElement static method

List<SessionAnnotation> getAnnotationsForElement(
  1. String reportId,
  2. String elementId
)

Returns the annotations of a specific element

Implementation

static List<SessionAnnotation> getAnnotationsForElement(
  String reportId,
  String elementId,
) {
  final allAnnotations = getAnnotations(reportId);
  return allAnnotations.where((a) => a.elementId == elementId).toList();
}