LATE_FINAL_FIELD_WITH_CONST_CONSTRUCTOR constant

CompileTimeErrorCode const LATE_FINAL_FIELD_WITH_CONST_CONSTRUCTOR

nnbd/feature-specification.md

It is an error for a class with a const constructor to have a late final field.

Implementation

static const CompileTimeErrorCode LATE_FINAL_FIELD_WITH_CONST_CONSTRUCTOR =
    CompileTimeErrorCode('LATE_FINAL_FIELD_WITH_CONST_CONSTRUCTOR',
        "Can't have a late final field in a class with a const constructor.",
        correction: "Try removing the 'late' modifier, or don't declare "
            "'const' constructors.")