BarcodeModel constructor
BarcodeModel({})
Implementation
BarcodeModel({
double? width,
double? height,
double? gapWidth,
double? gapHeight,
String? barcodeContent,
int? barcodeX,
int? barcodeY,
double? barcodeHeight,
int? quantity,
List<TextData>? textData,
}) : printData = {
'size': {
'width': width,
'height': height,
},
'gap': {
'width': gapWidth,
'height': gapHeight,
},
'barcode': {
'x': barcodeX,
'y': barcodeY,
'height': barcodeHeight,
'barcodeContent': barcodeContent,
},
'text': textData?.map((text) => text.toMap()).toList(),
'quantity': quantity,
};