getAnnotationById method
Get an annotation by its ID
Implementation
Annotation? getAnnotationById(String annotationId) {
return annotations.cast<Annotation?>().firstWhere(
(annotation) => annotation?.id == annotationId,
orElse: () => null,
);
}