BODY_MIGHT_COMPLETE_NORMALLY constant

CompileTimeErrorCode const BODY_MIGHT_COMPLETE_NORMALLY

No parameters.

Implementation

static const CompileTimeErrorCode BODY_MIGHT_COMPLETE_NORMALLY =
    CompileTimeErrorCode(
        'BODY_MIGHT_COMPLETE_NORMALLY',
        "The body might complete normally, causing 'null' to be returned, "
            "but the return type is a potentially non-nullable type.",
        correction:
            "Try adding either a return or a throw statement at the end.")