INVALID_ANNOTATION_FROM_DEFERRED_LIBRARY constant

CompileTimeErrorCode const INVALID_ANNOTATION_FROM_DEFERRED_LIBRARY

15 Metadata: Metadata consists of a series of annotations, each of which begin with the character @, followed by a constant expression that must be either a reference to a compile-time constant variable, or a call to a constant constructor.

12.1 Constants: A qualified reference to a static constant variable that is not qualified by a deferred prefix.

Implementation

static const CompileTimeErrorCode INVALID_ANNOTATION_FROM_DEFERRED_LIBRARY =
    CompileTimeErrorCode(
        'INVALID_ANNOTATION_FROM_DEFERRED_LIBRARY',
        "Constant values from a deferred library can't be used as "
            "annotations.",
        correction: "Try removing the annotation, or "
            "changing the import to not be deferred.")