setDeleteKey method

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

Toggles the delete key feature for the scanner based on the enabled flag.

deviceId - The identifier of the target device. enabled - A boolean indicating whether to enable or disable the delete key.

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

Implementation

Future<CommandResponse> setDeleteKey(
    {required deviceId, required bool enabled}) async {
  return await sendCommand(
      deviceId, enabled ? deleteKeyEnabled : deleteKeyDisabled);
}