setConcatenation method

Future<CommandResponse> setConcatenation({
  1. required dynamic deviceId,
  2. required bool enabled,
})

Sets the concatenation mode for Code 128 symbology.

deviceId is the identifier of the device. enabled is a boolean indicating whether to enable (true) or disable (false) concatenation.

Returns a CommandResponse indicating the success or failure of the operation.

Implementation

Future<CommandResponse> setConcatenation(
    {required deviceId, required bool enabled}) async {
  final String command =
      enabled ? code128EnableConcatenation : code128DisableConcatenation;
  return sendCommand(deviceId, command);
}