QrCode constructor

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

Implementation

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