PrintCommand class
A command to append to PrinterPosSystem.printBatch.
Constructing a command does not print anything. Native validation and submission happen when the batch is sent to the printer.
Constructors
- PrintCommand.barCode128({required String text, int width = 100, int height = 100})
- PrintCommand.image({required Uint8List pathImage})
- Appends encoded PNG/JPEG bytes, including rasterized Arabic text.
- PrintCommand.line({bool isBold = true, AlignmentPrint alignment = AlignmentPrint.left, int fontSize = 30, int lineSize = 19, String lineStyle = ' - '})
- PrintCommand.qrCode({required String text, int width = 100, int height = 100})
- PrintCommand.space({required int space})
- PrintCommand.text({required String text, AlignmentPrint alignment = AlignmentPrint.left, bool isBold = false, int fontSize = 30})
- PrintCommand.threeColumn({required String textLeft, required String textCenter, required String textRight, int spaceLeft = 60, int spaceCenter = 40, int spaceRight = 40, bool isBold = false, int fontSize = 16, AlignmentPrint leftAlign = AlignmentPrint.left, AlignmentPrint centerAlign = AlignmentPrint.center, AlignmentPrint rightAlign = AlignmentPrint.right})
- PrintCommand.twoColumn({required String textLeft, required String textRight, int spaceLeft = 60, int spaceRight = 40, bool isBold = false, int fontSize = 16, AlignmentPrint leftAlign = AlignmentPrint.left, AlignmentPrint rightAlign = AlignmentPrint.right})
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
-
toMap(
) → Map< String, Object> - Encodes this command for the Android bridge.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited