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