scalar method
Implementation
Future<void> scalar(ScalarCommand command) async {
if (messageAttributes.scalarCmd == null) {
throw ButtplugClientDeviceException("$name ($displayName) does not support scalar commands");
}
var scalarMsg = ScalarCmd();
scalarMsg.deviceIndex = index;
var subcommandList = <ScalarSubcommand>[];
command.asMap(messageAttributes.scalarCmd!.length).forEach((key, value) {
subcommandList.add(ScalarSubcommand(key, value.scalar, value.actuator));
});
scalarMsg.scalars = subcommandList;
return await _sendMessageExpectOk(scalarMsg);
}