printText method
Prints textData as a text label.
Parameters:
x,y– origin coordinates in dots.type– font: 0–6 = standard fonts, 7 = Chinese.orientation– rotation:'N','R','I','B'.size– font size: 1=10px, 2=20px, 3=30px (default), 4=40px, 5=50px, 6=60px.
Implementation
Future<String?> printText(
String textData, {
String x = '0',
String y = '0',
int type = 0,
String orientation = 'N',
int size = 3,
}) {
return _repository.printText(
textData,
x: x,
y: y,
type: type,
orientation: orientation,
size: size,
);
}