PrinterText class
Text printing functions for Bixolon printers.
This class provides methods for printing text in various formats, including plain text, centered text, and formatted text with columns.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Methods
-
printBlankLines(
int numberOfLines) → Future< bool> - Print blank lines for spacing.
-
printCenteredText(
{required String text, String fontFamily = 'Siemreap', double fontSize = 24, FontWeight fontWeight = FontWeight.normal, Color color = Colors.black, int? printerWidth}) → Future< bool> - Print centered text.
-
printFormattedText(
{required List< TextColumn> columns, int lineWidth = 48, bool addNewLine = true}) → Future<bool> - Print formatted text directly to the printer without converting to an image.
-
printHeading(
String text, {double fontSize = 28, bool bold = true, int? printerWidth}) → Future< bool> - Print a heading (centered, larger text).
-
printLines(
List< String> lines, {String fontFamily = 'Siemreap', double fontSize = 20, FontWeight fontWeight = FontWeight.normal, double lineSpacing = 1.5}) → Future<bool> - Print multiple lines of text.
-
printParagraph(
String text, {int lineWidth = 48, String fontFamily = 'Siemreap', double fontSize = 20, FontWeight fontWeight = FontWeight.normal, bool breakWords = false}) → Future< bool> - Print a paragraph of text with automatic word wrapping.
-
printSeparator(
{String char = '-', int lineWidth = 48}) → Future< bool> - Print a horizontal line (separator).
-
printText(
String text) → Future< bool> - Print plain text.
-
printTextBox(
String text, {int lineWidth = 48, List< String> boxChars = const ['-', '|', '+']}) → Future<bool> - Print a text box with border.
-
printUnderlinedText(
String text, {String underlineChar = '-', bool addNewLine = true}) → Future< bool> - Print text with an underline.