Command.bgAdjustBrightness constructor

Command.bgAdjustBrightness({
  1. int? id,
  2. required int percentage,
  3. required int duration,
})

Command to adjust the brightness by specified percentage within specified duration (background light).

see Command.adjustBrightness

Implementation

Command.bgAdjustBrightness({
  this.id,
  required int percentage,
  required int duration,
})  : method = CommandMethods.bgAdjustBright,
      parameters = <int>[percentage, duration];