QRCodeGenerate constructor

QRCodeGenerate(
  1. int typeNumber,
  2. int errorCorrectLevel
)

Implementation

QRCodeGenerate(this.typeNumber, this.errorCorrectLevel)
    : moduleCount = typeNumber * 4 + 17 {
  RangeError.checkValueInInterval(typeNumber, 1, 40, 'typeNumber');
  RangeError.checkValidIndex(
    errorCorrectLevel,
    QRErrorCorrectLevel.levels,
    'errorCorrectLevel',
  );
}