INVALID_USE_OF_COVARIANT constant

CompileTimeErrorCode const INVALID_USE_OF_COVARIANT

The 'covariant' keyword was found in an inappropriate location.

Implementation

static const CompileTimeErrorCode INVALID_USE_OF_COVARIANT =
    CompileTimeErrorCode(
        'INVALID_USE_OF_COVARIANT',
        "The 'covariant' keyword can only be used for parameters in instance "
            "methods or before non-final instance fields.",
        correction: "Try removing the 'covariant' keyword.")