INVALID_MODIFIER_ON_SETTER constant

CompileTimeErrorCode const INVALID_MODIFIER_ON_SETTER
  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_SETTER =
    CompileTimeErrorCode('INVALID_MODIFIER_ON_SETTER',
        "The modifier '{0}' can't be applied to the body of a setter.",
        correction: "Try removing the modifier.")