setPositiveAndNegativeBarcodesMode method

Future<CommandResponse> setPositiveAndNegativeBarcodesMode({
  1. required dynamic deviceId,
  2. required PositiveAndNegativeBarcodesMode mode,
})

Sets the mode for reading positive and negative barcodes.

deviceId - The identifier of the target device. mode - The mode to set for barcode reading, specified by PositiveAndNegativeBarcodesMode.

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

Implementation

Future<CommandResponse> setPositiveAndNegativeBarcodesMode(
    {required deviceId,
    required PositiveAndNegativeBarcodesMode mode}) async {
  return await sendCommand(
      deviceId, _positiveAndNegativeBarcodesReadModeCommands[mode]!);
}