hasSetter property
Return true
if this variable needs the setter.
Implementation
bool get hasSetter {
if (isConst) {
return false;
}
if (isLate) {
return !isFinal || !hasInitializer;
}
return !isFinal;
}
Return true
if this variable needs the setter.
bool get hasSetter {
if (isConst) {
return false;
}
if (isLate) {
return !isFinal || !hasInitializer;
}
return !isFinal;
}