posSetAbsolute static method
设置绝对打印位置 @param absolute @return
Implementation
static Uint8List? posSetAbsolute(int absolute) {
if (absolute > 65535 || absolute < 0) return null;
try {
Command.escRelative[2] = absolute % 0x100;
Command.escRelative[3] = (absolute / 0x100) as int;
} catch (e) {
debugPrint(e.toString());
}
return Uint8List.fromList(Command.escRelative);
}