MISSING_CONST_IN_LIST_LITERAL constant

CompileTimeErrorCode const MISSING_CONST_IN_LIST_LITERAL

12.1 Constants: A constant expression is ... a constant list literal.

Implementation

static const CompileTimeErrorCode MISSING_CONST_IN_LIST_LITERAL =
    CompileTimeErrorCode(
        'MISSING_CONST_IN_LIST_LITERAL',
        "List literals must be prefixed with 'const' when used as a constant "
            "expression.",
        correction: "Try adding the keyword 'const' before the literal.")