parseInformation method

  1. @override
String parseInformation()
override

Implementation

@override
String parseInformation() {
  final buff = StringBuilder();

  buff.write('(01)');
  final initialGtinPosition = buff.length;
  final firstGtinDigit =
      generalDecoder.extractNumericValueFromBitArray(_HEADER_SIZE, 4);
  buff.write(firstGtinDigit);

  encodeCompressedGtinWithoutAI(buff, _HEADER_SIZE + 4, initialGtinPosition);

  return generalDecoder.decodeAllCodes(buff, _HEADER_SIZE + 44);
}