CONST_INSTANCE_FIELD constant

CompileTimeErrorCode const CONST_INSTANCE_FIELD

No parameters.

Implementation

static const CompileTimeErrorCode CONST_INSTANCE_FIELD = CompileTimeErrorCode(
    'CONST_INSTANCE_FIELD', "Only static fields can be declared as const.",
    correction: "Try declaring the field as final, or adding the keyword "
        "'static'.",
    hasPublishedDocs: true)