QrImage.withMaskPattern constructor

QrImage.withMaskPattern(
  1. QrCode qrCode,
  2. int maskPattern
)

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);
}