QrCode.fromUint8List constructor

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

Implementation

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