ReceiptSectionText class
Methods
addImage (String base64 , {int width = 120 , ReceiptAlignment alignment = ReceiptAlignment.center })
→ void
addItemTexts (List <String > texts , {ReceiptTextSizeType size = ReceiptTextSizeType.extraLarge })
→ void
addLeftRightText (String leftText , String rightText , {ReceiptTextStyleType leftStyle = ReceiptTextStyleType.normal , ReceiptTextStyleType rightStyle = ReceiptTextStyleType.normal , ReceiptTextSizeType leftSize = ReceiptTextSizeType.medium , ReceiptTextSizeType rightSize = ReceiptTextSizeType.medium })
→ void
Handler tag of text (span or b) and put inside body html
This will generate left right text with two value input from parameter
leftText
and rightText
addSpacer ({int count = 1 , bool useDashed = false })
→ void
Add new line as empty or dashed line.
count
is how much line
if useDashed
true line will print as dashed line
addText (String text , {ReceiptAlignment alignment = ReceiptAlignment.center , ReceiptTextStyleType style = ReceiptTextStyleType.normal , ReceiptTextSizeType size = ReceiptTextSizeType.medium })
→ void
Handler tag of text (p or b) and put inside body html
This will generate single line text left, center or right
text
value of text will print
alignment
to set alignment of text
style
define normal or bold
size
to set size of text small, medium, large or extra large
getItem (String text , ReceiptColumn column , ReceiptTextSizeType size , {ReceiptAlignment alignment = ReceiptAlignment.center , bool isMargin = false })
→ String
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited