QRCodeGenerate.fromData constructor
Implementation
factory QRCodeGenerate.fromData({
required String data,
required int errorCorrectLevel,
}) {
final typeNumber = _calculateTypeNumberFromData(
errorCorrectLevel,
[QrByte(data)],
);
return QRCodeGenerate(typeNumber, errorCorrectLevel)..addData(data);
}