INVALID_MODIFIER_ON_CONSTRUCTOR constant

CompileTimeErrorCode const INVALID_MODIFIER_ON_CONSTRUCTOR
  1. Functions: It is a compile-time error if an async, async* or sync* modifier is attached to the body of a setter or constructor.

Implementation

static const CompileTimeErrorCode INVALID_MODIFIER_ON_CONSTRUCTOR =
    CompileTimeErrorCode('INVALID_MODIFIER_ON_CONSTRUCTOR',
        "The modifier '{0}' can't be applied to the body of a constructor.",
        correction: "Try removing the modifier.")