getAnnotationsForPage static method

List<SessionAnnotation> getAnnotationsForPage(
  1. String reportId,
  2. int pageIndex
)

Returns the annotations of a specific page

Implementation

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