QRCodeGenerate.fromUint8List constructor
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));
}