EscCommand class
Methods
cleanCommand ()
→ Future <void >
Clean command buffer. This method must be called before calling any other method,
otherwise the command buffer will be invalid.
code128 ({required String content , int width = 2 , int height = 60 , Alignment alignment = Alignment.left , HriPosition hriPosition = HriPosition.below })
→ Future <void >
Sends a Code 128 command to the printer with specified parameters.
cutPaper ()
→ Future <void >
Cuts the paper after printing. This method is used to cut the paper after
printing and is only supported by some printers. The method communicates
with the printer through a method channel.
getCommand ()
→ Future <Uint8List ? >
Get the current command buffer. If the command buffer is empty, return null.
image ({required Uint8List image , Alignment alignment = Alignment.left })
→ Future <void >
Sends an image command to the printer with specified parameters.
newline ()
→ Future <void >
Sends a newline command to the printer.
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
print ({int feedLines = 4 })
→ Future <void >
Prints the current buffer and feeds the paper by the specified number of
lines. The method communicates with the printer through a method channel.
qrCode ({required String content , int size = 3 , Alignment alignment = Alignment.left })
→ Future <void >
Sends a QR code command to the printer with specified parameters.
sound ({int number = 1 , int time = 3 })
→ Future <void >
Sends a sound command to the printer.
text ({required String content , Alignment alignment = Alignment.left , EscTextStyle style = EscTextStyle.default_ , EscFontSize fontSize = EscFontSize.default_ })
→ Future <void >
Sends a text command to the printer with specified parameters.
toString ()
→ String
A string representation of this object.
inherited
bluetooth_print_plus 2.4.6