annotations property

Iterable<Annotation> annotations

Implementation

Iterable<Annotation> get annotations => _annotations ??= element.metadata
    .whereNot((m) =>
        m.element == null ||
        packageGraph.specialClasses[SpecialClass.pragma].element.constructors
            .contains(m.element))
    .map((m) => Annotation(m, library, packageGraph));