updateWith method

KeyLightOptions updateWith({
  1. bool? on,
  2. int? brightness,
  3. int? temperature,
})

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,
        ),
      ),
    );