PrintQrCodeModel constructor
const
PrintQrCodeModel({
- required String data,
- NiimbotRect? frame,
- double? width,
- double? height,
- NiimbotElementAlignment horizontalAlignment = NiimbotElementAlignment.center,
- NiimbotElementAlignment verticalAlignment = NiimbotElementAlignment.center,
- NiimbotMatrixCodeType type = NiimbotMatrixCodeType.qrCode,
- 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,
});