getProperty method

  1. @override
dynamic getProperty(
  1. String propertyName
)
override

Implementation

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