SceneActionAction constructor

SceneActionAction({
  1. required LightOn on,
  2. required LightDimming dimming,
  3. required LightColorXy xy,
  4. required LightPowerUpColorColorTemperature colorTemperature,
  5. required LightGradient gradient,
  6. required String effect,
  7. int? durationMilliseconds,
})

Creates a SceneActionAction object.

Implementation

SceneActionAction({
  required this.on,
  required this.dimming,
  required this.xy,
  required this.colorTemperature,
  required this.gradient,
  required this.effect,
  int? durationMilliseconds,
})  : _originalOn = on.copyWith(),
      _originalDimming = dimming.copyWith(),
      _originalXy = xy.copyWith(),
      _originalColorTemperature = colorTemperature.copyWith(),
      _originalGradient = gradient.copyWith(),
      _originalEffect = effect,
      _originalDurationMilliseconds = durationMilliseconds,
      _durationMilliseconds = durationMilliseconds;