speed property

double get speed

Speed of dynamic palette or effect.

The speed is valid for the dynamic palette if the status is LightDynamicsStatus.dynamic_palette or for the corresponding effect listed in status. In case of status LightDynamicsStatus.none, the speed is not valid.

Range: 0 - 1

Throws UnitIntervalException if speed is set to something outside of the range 0 to 1 (inclusive).

Implementation

double get speed => _speed;
set speed (double speed)

Implementation

set speed(double speed) {
  if (Validators.isUnitInterval(speed)) {
    _speed = speed;
  } else {
    throw UnitIntervalException.withValue(speed);
  }
}