QRImage.withMaskPattern constructor

QRImage.withMaskPattern(
  1. QRCodeGenerate qrCode,
  2. int maskPattern
)

Generates a specific image for the qrCode and maskPattern.

Implementation

QRImage.withMaskPattern(QRCodeGenerate qrCode, this.maskPattern)
    : assert(maskPattern >= 0 && maskPattern <= 7),
      moduleCount = qrCode.moduleCount,
      typeNumber = qrCode.typeNumber,
      errorCorrectLevel = qrCode.errorCorrectLevel {
  _makeImpl(maskPattern, qrCode.dataCache, false);
}