Command.bgSetPower constructor

Command.bgSetPower({
  1. int? id,
  2. required String power,
  3. required String effect,
  4. required int duration,
  5. int? mode,
})

Command to switch on or off the background light.

see Command.setPower

Implementation

Command.bgSetPower({
  this.id,
  required String power,
  required String effect,
  required int duration,
  int? mode,
})  : method = CommandMethods.bgSetPower,
      parameters = <dynamic>[power, effect, duration, if (mode != null) mode];