types property

List<AnnotationType> get types

The AnnotationType of each parsed annotation in this event.

Convenience over mapping annotations to their Annotation.type — handy for filtering, e.g. if (event.types.contains(AnnotationType.ink)) …. Entries that fail to parse are skipped (same policy as annotations).

Implementation

List<AnnotationType> get types =>
    annotations.map((a) => a.type).toList(growable: false);