convert method

  1. @override
Barcode2DMatrix convert(
  1. Uint8List data
)
override

Actual barcode computation method, returns a matrix of bool which represents the presence or absence of a pixel

Implementation

@override
Barcode2DMatrix convert(Uint8List data) {
  if (!_initialized) {
    _init();
    _initialized = true;
  }

  final m = _encode(data);

  return Barcode2DMatrix(
    m.matrixSize,
    m.matrixSize,
    1,
    m.bits,
  );
}