INVALID_ANNOTATION_GETTER constant

CompileTimeErrorCode const INVALID_ANNOTATION_GETTER

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.

Implementation

static const CompileTimeErrorCode INVALID_ANNOTATION_GETTER =
    CompileTimeErrorCode(
        'INVALID_ANNOTATION_GETTER', "Getters can't be used as annotations.",
        correction: "Try using a top-level variable or a field.")