FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZER constant

CompileTimeErrorCode const FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZER

7.6.1 Generative Constructors: Let k be a generative constructor. It is a compile time error if k's initializer list contains an initializer for a variable that is initialized by means of an initializing formal of k.

Implementation

FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZER = CompileTimeErrorCode(
    'FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZER',
    "Fields can't be initialized in both the parameter list and the "
        "initializers.",
    correction: "Try removing one of the initializations.")