TsplPrinter<T> constructor

TsplPrinter<T>(
  1. PrinterConnector<T> connector,
  2. T model, {
  3. String unit = "mm",
  4. String sizeWidth = "35",
  5. String sizeHeight = "25",
  6. String gapDistance = "5",
  7. String gapOffset = "0",
  8. String referenceX = "0",
  9. String referenceY = "0",
  10. String direction = "0",
  11. String offset = "0",
  12. String offsetDistance = "0",
  13. String shiftLeft = "0",
  14. String shiftTop = "0",
  15. String dpi = "200",
})

Implementation

TsplPrinter(
  PrinterConnector<T> connector,
  T model, {
  String unit = "mm",
  String sizeWidth = "35",
  String sizeHeight = "25",
  String gapDistance = "5",
  String gapOffset = "0",
  String referenceX = "0",
  String referenceY = "0",
  String direction = "0",
  String offset = "0",
  String offsetDistance = "0",
  String shiftLeft = "0",
  String shiftTop = "0",
  this.dpi = "200",
}) : super(connector, model) {
  this._unit = unit;
  this._sizeWidth = sizeWidth;
  this._sizeHeight = sizeHeight;
  this._gapDistance = gapDistance;
  this._gapOffset = gapOffset;
  this._referenceX = referenceX;
  this._referenceY = referenceY;
  this._direction = direction;
  this._offset = offset;
  this._offsetDistance = offsetDistance;
  this._shiftLeft = shiftLeft;
  this._shiftTop = shiftTop;
  this._config = [
    Command.setSize(this._sizeWidth, this._sizeHeight, this._unit),
    Command.setGap(this._gapDistance, this._gapOffset, this._unit),
    Command.setReference(this._referenceX, this._referenceY),
    Command.setDirection(this._direction),
    Command.setOffset(this._offsetDistance, this._offset, this._unit),
    Command.setShift(this._shiftLeft, this._shiftTop)
  ].join();
}