getItem method

String getItem(
  1. String text,
  2. ReceiptColumn column,
  3. ReceiptTextSizeType size, {
  4. ReceiptAlignment alignment = ReceiptAlignment.center,
  5. bool isMargin = false,
})

Implementation

String getItem (String text, ReceiptColumn column, ReceiptTextSizeType size,
    {ReceiptAlignment alignment = ReceiptAlignment.center, bool isMargin = false}){
  final ReceiptText receiptText = ReceiptText(
    text,
    textStyle:  ReceiptTextStyle(
      type: ReceiptTextStyleType.bold,
      size: size
    ),
    alignment: alignment,
    column: column,
    isMargin: isMargin
  );
  return receiptText.html;
}