setBlackColorDensity method Null safety

void setBlackColorDensity(
  1. int density
)

设置黑色打印浓度

density 打印浓度1-3

Implementation

void setBlackColorDensity(int density) {
  addBytes(
      [0x1F, 0x1B, 0x1F, 0x62, 0x06, 0x07, 0x00, rangeLimit(density, 1, 3)]);
}