Command.adjustBrightness constructor
Command to adjust the brightness by specified percentage within specified duration.
percentage
- percentage to be adjusted. Range is from -100 to 100.duration
- see Command.setColorTemperature
Implementation
Command.adjustBrightness({
this.id,
required int percentage,
required int duration,
}) : method = CommandMethods.adjustBright,
parameters = <int>[percentage, duration];