setSpaceInsertion method

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

Sets the space insertion mode between characters in Codabar symbology.

deviceId - The identifier of the target device. enabled - A boolean indicating whether to enable (true) or disable (false) space insertion.

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

Implementation

Future<CommandResponse> setSpaceInsertion(
    {required deviceId, required bool enabled}) async {
  final String command =
      enabled ? codabarEnableSpaceInsertion : codabarDisableSpaceInsertion;
  return sendCommand(deviceId, command);
}