hasSetter property

bool hasSetter
inherited

Return true if this variable needs the setter.

Implementation

bool get hasSetter {
  if (isConst) {
    return false;
  }

  if (isLate) {
    return !isFinal || !hasInitializer;
  }

  return !isFinal;
}