Command.bgToggle constructor

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

Command to toggle the background light.

This method is defined because sometimes user may just want to flip the state without knowing the current state.

Implementation

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