getProperty method
Implementation
@override
getProperty(propertyName) {
if (propertyName == "color") {
return color;
} else if (propertyName == "intensity") {
return intensity;
} else {
return super.getProperty(propertyName);
}
}