CONST_CONSTRUCTOR_WITH_NON_FINAL_FIELD constant

CompileTimeErrorCode const CONST_CONSTRUCTOR_WITH_NON_FINAL_FIELD

No parameters.

Implementation

static const CompileTimeErrorCode CONST_CONSTRUCTOR_WITH_NON_FINAL_FIELD =
    CompileTimeErrorCode('CONST_CONSTRUCTOR_WITH_NON_FINAL_FIELD',
        "Can't define a const constructor for a class with non-final fields.",
        correction: "Try making all of the fields final, or "
            "removing the keyword 'const' from the constructor.",
        hasPublishedDocs: true)