MISSING_CONST_IN_MAP_LITERAL constant

CompileTimeErrorCode const MISSING_CONST_IN_MAP_LITERAL

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

Implementation

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