Command.devToggle constructor

Command.devToggle({
  1. int? id,
})

Command to toggle the main and background light at the same time.

When there is main light and background light, Command.toggle is used to toggle main light, Command.bgToggle is used to toggle background light while Command.devToggle is used to toggle both light at the same time.

Implementation

Command.devToggle({this.id})
    : method = CommandMethods.devToggle,
      parameters = <void>[];