getProperty method

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

Implementation

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