Barcode.code128 constructor

Barcode.code128(
  1. List barcodeData
)

CODE128

k >= 2 d: '{A'/'{B'/'{C' => '0'–'9', A–D, a–d, $, +, −, ., /, : usage: {A = QRCode type A {B = QRCode type B {C = QRCode type C barcodeData ex.: "{A978020137962".split("");

Implementation

Barcode.code128(List<dynamic> barcodeData) {
  final k = barcodeData.length;
  if (k < 2) {
    throw Exception('Barcode: Wrong data range');
  }

  _type = BarcodeType.code128;
  _data = _convertData(barcodeData);
}