Command.setName constructor
Command to set name for the device. The name will be stored on the device and reported in discovery response.
When using Yeelight official App, the device name is stored on cloud. This method instead store the name on persistent memory of the device, so the two names could be different.
Implementation
Command.setName({this.id, required String name})
: method = CommandMethods.setName,
parameters = <String>[name];