getAnnotations method

  1. @override
List<AnnotationDeclaration> getAnnotations()
override

Returns all annotations applied to this declaration in source code.

The returned list:

Returns an empty list if no annotations are present.

Implementation

@override
List<AnnotationDeclaration> getAnnotations() => List.unmodifiable(_annotations);