updateWith method
When updating the light, please use this method.
Implementation
KeyLightOptions updateWith({
bool? on,
int? brightness,
int? temperature,
}) =>
KeyLightOptions._(
number: number,
lights: lights.map(
(e) => e.updateWith(
isOn: on,
brightness: brightness,
temperature: temperature,
),
),
);