setCompositeGS1DatabarGS1128 method
Future<CommandResponse>
setCompositeGS1DatabarGS1128({
- required dynamic deviceId,
- required bool enabled,
Sets the state for GS1 Databar and GS1-128 composite codes.
deviceId
- The identifier of the target device.
enabled
- A boolean indicating whether to enable (true
) or disable (false
) GS1 composite codes.
Returns a CommandResponse indicating the success or failure of the operation.
Implementation
Future<CommandResponse> setCompositeGS1DatabarGS1128(
{required deviceId, required bool enabled}) async {
final String command = enabled ? enableCompositeGs1 : disableCompositeGs1;
return sendCommand(deviceId, command);
}