addImage method

void addImage(
  1. String base64, {
  2. int width = 120,
  3. ReceiptAlignment alignment = ReceiptAlignment.center,
})

Implementation

void addImage(
  String base64, {
  int width = 120,
  ReceiptAlignment alignment = ReceiptAlignment.center,
}) {
  final ReceiptImage image = ReceiptImage(
    base64,
    width: width,
    alignment: alignment,
  );
  _data += image.html;
}