INVALID_TYPE_ARGUMENT_IN_CONST_LIST constant

CompileTimeErrorCode const INVALID_TYPE_ARGUMENT_IN_CONST_LIST

12.6 Lists: It is a compile time error if the type argument of a constant list literal includes a type parameter.

Parameters: 0: the name of the type parameter

Implementation

static const CompileTimeErrorCode INVALID_TYPE_ARGUMENT_IN_CONST_LIST =
    CompileTimeErrorCode(
        'INVALID_TYPE_ARGUMENT_IN_CONST_LIST',
        "Constant list literals can't include a type parameter as a type "
            "argument, such as '{0}'.",
        correction:
            "Try replacing the type parameter with a different type.")