ReceiptSectionText class

Constructors

ReceiptSectionText({int numberColumn = 1, String styleAll = ''})

Properties

content String
Build a page from html, CollectionStyle.all is defined CSS inside html _data will collect all generated tag from model ReceiptText, ReceiptTextLeftRight and ReceiptLine
no setter
hashCode int
The hash code for this object.
no setterinherited
numberColumn int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
styleAll String
getter/setter pair

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

Operators

operator ==(Object other) bool
The equality operator.
inherited