type constant

TargetKind const type

Indicates that an annotation is valid on any declaration that introduces a type. This includes classes, enums, mixins, and typedefs, but does not include extensions because extensions don't introduce a type.

Implementation

// TODO(srawlins): This should include extension types.
static const type =
    TargetKind._('types (classes, enums, mixins, or typedefs)', 'type');