GroupedLight constructor
GroupedLight({
- required ResourceType type,
- required String id,
- String idV1 = "",
- required Relative owner,
- required LightOn on,
- required LightDimming dimming,
- LightDimmingDelta? dimmingDelta,
- LightPowerUpColorColorTemperature? colorTemperature,
- LightColorTemperatureDelta? colorTemperatureDelta,
- LightColorXy? xy,
- required LightAlert alert,
- int? durationMilliseconds,
Creates a GroupedLight object.
Implementation
GroupedLight({
required super.type,
required super.id,
this.idV1 = "",
required this.owner,
required this.on,
required this.dimming,
this.dimmingDelta,
this.colorTemperature,
this.colorTemperatureDelta,
this.xy,
required this.alert,
int? durationMilliseconds,
}) : assert(idV1.isEmpty || Validators.isValidIdV1(idV1),
'"$idV1" is not a valid `idV1`'),
assert(durationMilliseconds == null || durationMilliseconds >= 0,
"`durationMilliseconds` must be greater than 0"),
_originalOn = on.copyWith(),
_originalDimming = dimming.copyWith(),
_originalDimmingDelta = dimmingDelta?.copyWith(),
_originalColorTemperature = colorTemperature?.copyWith(),
_originalColorTemperatureDelta = colorTemperatureDelta?.copyWith(),
_originalXy = xy?.copyWith(),
_originalAlert = alert.copyWith(),
_originalDurationMilliseconds = durationMilliseconds;