TextLine class

A line of text, with the formatting the device supports.

Inheritance

Constructors

TextLine(String text, {int size = 24, bool bold = false, bool underline = false, PrintAlign align = PrintAlign.left})
const

Properties

align → PrintAlign
final
bold → bool
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → int
A pixel size (24 reads as body text, 34 as a title). Pixels, not the device's 0–5 size preset, because a receipt is composed through the buffer API, which takes raw pixels.
final
text → String
final
underline → bool
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
override
toString() → String
A string representation of this object.
inherited

Operators

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