setPrintDirection method Null safety

void setPrintDirection(
  1. bool horizontalMirror,
  2. bool verticalReverse
)

设置打印方向

horizontalMirror水平镜像打印 verticalReverse垂直反向打印

Implementation

void setPrintDirection(bool horizontalMirror, bool verticalReverse) {
  addString(
      "DIRECTION ${verticalReverse ? 1 : 0},${horizontalMirror ? 1 : 0}\r\n");
}