Command.setBrightness constructor
Command.setBrightness({})
Command to set brightness of the device (main light).
brightness
- the target brightness. Ranges from 1 to 100, where 1 means minimum brightness, 100 means maximum brightness.effect
- same as in Command.setColorTemperature.duration
- same as in Command.setColorTemperature.
This command is accepted only if the device is in 'ON' state.
Implementation
Command.setBrightness({
this.id,
required int brightness,
required String effect,
required int duration,
}) : method = CommandMethods.setBright,
parameters = <dynamic>[brightness, effect, duration];