DEFAULT_VALUE_IN_REDIRECTING_FACTORY_CONSTRUCTOR constant

CompileTimeErrorCode const DEFAULT_VALUE_IN_REDIRECTING_FACTORY_CONSTRUCTOR

7.6.2 Factories: It is a compile-time error if k explicitly specifies a default value for an optional parameter.

Implementation

DEFAULT_VALUE_IN_REDIRECTING_FACTORY_CONSTRUCTOR = CompileTimeErrorCode(
    'DEFAULT_VALUE_IN_REDIRECTING_FACTORY_CONSTRUCTOR',
    "Default values aren't allowed in factory constructors that redirect "
        "to another constructor.",
    correction: "Try removing the default value.")