type property
DartType
type
The declared type of this variable.
Implementation
@override
final DartType type;
Implementation
@override
set type(DartType type) {
super.type = type;
// Reset cached types of synthetic getters and setters.
// TODO(scheglov): Consider not caching these types.
if (!isSynthetic) {
var getter = this.getter;
if (getter is PropertyAccessorElementImpl_ImplicitGetter) {
getter._type = null;
}
var setter = this.setter;
if (setter is PropertyAccessorElementImpl_ImplicitSetter) {
setter._type = null;
}
}
}