setSuffixFromString method

Future<CommandResponse> setSuffixFromString({
  1. required dynamic deviceId,
  2. required String suffix,
  3. FormattableSymbology symbology = FormattableSymbology.allCodes,
})

Sets the suffix formatting using a string.

deviceId - The identifier of the target device. suffix - A string to be used as the suffix, with a maximum length of 4.

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

Implementation

Future<CommandResponse> setSuffixFromString(
    {required deviceId,
    required String suffix,
    FormattableSymbology symbology = FormattableSymbology.allCodes}) async {
  final directInputKeysCodes =
      _getDirectInputKeysCodesFromString(suffix, _maxSuffixChars);
  return sendCommand(deviceId, _suffixSymbologyCodesMap[symbology]!,
      parameters: directInputKeysCodes);
}