setMode method

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

Sets the Codabar mode for the scanner.

deviceId - The identifier of the target device. mode - The Codabar mode to set.

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

Implementation

Future<CommandResponse> setMode(
    {required deviceId, required CodabarMode mode}) async {
  return sendCommand(deviceId, _modeCommands[mode]!);
}