setProperty method

  1. @override
Light setProperty(
  1. String propertyName,
  2. dynamic value
)
override

Implementation

@override
Light setProperty(String propertyName, dynamic value) {
  if (propertyName == "intensity") {
    intensity = value;
  } else {
    super.setProperty(propertyName, value);
  }

  return this;
}