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