posSetRotate static method

Uint8List? posSetRotate(
  1. int rotate
)

设置旋转90度打印 @param rotate @return

Implementation

static Uint8List? posSetRotate(int rotate) {
  if (rotate < 0 || rotate > 1) return null;

  Command.escV[2] = rotate;
  return Uint8List.fromList(Command.escV);
}