directive constant

  1. @Deprecated("Use a more specific TargetKind, like 'TargetKind.exportDirective'," "'TargetKind.library', or 'TargetKind.partOfDirective'")
TargetKind const directive

Indicates that an annotation is valid on any directive in a library or part file, whether it's a library, import, export, part, or part of directive.

Implementation

@Deprecated(
    "Use a more specific TargetKind, like 'TargetKind.exportDirective',"
    "'TargetKind.library', or 'TargetKind.partOfDirective'")
static const directive = TargetKind._('directives', 'directive');