PrintQrCodeModel constructor

const PrintQrCodeModel({
  1. required String data,
  2. NiimbotRect? frame,
  3. double? width,
  4. double? height,
  5. NiimbotElementAlignment horizontalAlignment = NiimbotElementAlignment.center,
  6. NiimbotElementAlignment verticalAlignment = NiimbotElementAlignment.center,
  7. NiimbotMatrixCodeType type = NiimbotMatrixCodeType.qrCode,
  8. NiimbotRotation rotation = NiimbotRotation.degree0,
})

Creates a matrix code with optional dimensions in millimetres.

When frame is omitted, the native renderer resolves its position using the alignments. Missing width or height is calculated automatically.

Implementation

const PrintQrCodeModel({
  required this.data,
  this.frame,
  this.width,
  this.height,
  this.horizontalAlignment = NiimbotElementAlignment.center,
  this.verticalAlignment = NiimbotElementAlignment.center,
  this.type = NiimbotMatrixCodeType.qrCode,
  this.rotation = NiimbotRotation.degree0,
});