getAnnotation method

Annotation? getAnnotation(
  1. String annotationId
)

Gets an annotation by its ID.

Returns null if the annotation doesn't exist.

Parameters:

  • annotationId: The ID of the annotation to retrieve

Returns the annotation if found, otherwise null.

Implementation

Annotation? getAnnotation(String annotationId) =>
    annotations.getAnnotation(annotationId);