setAddOnPlus5 method
- required dynamic deviceId,
- required bool enabled,
Sets the 5-character add-on for UPCA symbology.
deviceId
- The identifier of the target device.
enabled
- A boolean indicating whether to enable (true
) or disable (false
) the 5-character add-on.
Returns a CommandResponse indicating the success or failure of the operation.
Implementation
Future<CommandResponse> setAddOnPlus5(
{required deviceId, required bool enabled}) async {
final String command = enabled ? enableUPCAPlus5 : disableUPCAPlus5;
return sendCommand(deviceId, command);
}