QrImage.withMaskPattern constructor
Generates a specific image for the qrCode
and maskPattern
.
Implementation
QrImage.withMaskPattern(QrCode qrCode, this.maskPattern)
: assert(maskPattern >= 0 && maskPattern <= 7),
moduleCount = qrCode.moduleCount,
typeNumber = qrCode.typeNumber,
errorCorrectLevel = qrCode.errorCorrectLevel {
_makeImpl(maskPattern, qrCode.dataCache, false);
}