posSetLeftSp static method

Uint8List? posSetLeftSp(
  1. int left
)

设置左边距 @param left @return

Implementation

static Uint8List? posSetLeftSp(int left) {
  if (left > 255 || left < 0) return null;

  try {
    Command.gsLeftSp[2] = left % 100;
    Command.gsLeftSp[3] = (left / 100) as int;
  } catch (e) {
    debugPrint(e.toString());
  }
  return Uint8List.fromList(Command.gsLeftSp);
}