QRCodeModel constructor

QRCodeModel(
  1. String text,
  2. int typeNumber,
  3. QRErrorCorrectLevel errorCorrectLevel,
  4. {Encoding encoding = utf8}
)

Implementation

QRCodeModel(
    String text, int typeNumber, QRErrorCorrectLevel errorCorrectLevel,
    {Encoding encoding = utf8}) {
  _encodedText = QR8bitByte(text, encoding: encoding);
  this.typeNumber = typeNumber;
  this.errorCorrectLevel = errorCorrectLevel;
  _dataCache =
      QRCodeModel._createData(typeNumber, errorCorrectLevel, _encodedText);

  _makeImplIsTest(false, _getBestMaskPattern());
}