QRCodeGenerate.fromUint8List constructor

QRCodeGenerate.fromUint8List({
  1. required Uint8List data,
  2. required int errorCorrectLevel,
})

Implementation

factory QRCodeGenerate.fromUint8List({
  required Uint8List data,
  required int errorCorrectLevel,
}) {
  final typeNumber = _calculateTypeNumberFromData(
    errorCorrectLevel,
    [QrByte.fromUint8List(data)],
  );
  return QRCodeGenerate(typeNumber, errorCorrectLevel)
    .._addToList(QrByte.fromUint8List(data));
}