getUnitItemBarcodeInfo method

List<BarcodeInfo> getUnitItemBarcodeInfo({
  1. required GS1Barcode gs1barcode,
  2. required Locale locale,
})

Implementation

List<BarcodeInfo> getUnitItemBarcodeInfo({
  required GS1Barcode gs1barcode,
  required Locale locale,
}) {
  return gs1barcode.elements.values.map((value) => BarcodeInfo(
    ai: value.aiCode,
    value: value.rawData,
    description: getAiDescription(value.aiCode, locale),
  )).toList();
}