getLabelName method

ALabelName getLabelName(
  1. int index
)

Implementation

ALabelName getLabelName(int index) {
  if (this._series == PrinterSeries.PT3_LABEL_PRINTER) {
    return PT3.fromIndex(index);
  } else if (this._series == PrinterSeries.PT_LABEL_PRINTER) {
    return PT.fromIndex(index);
  } else if (this._series == PrinterSeries.QL700_LABEL_PRINTER) {
    return QL700.fromIndex(index);
  } else if (this._series == PrinterSeries.QL1100_LABEL_PRINTER) {
    return QL1100.fromIndex(index);
  } else {
    return this._series == PrinterSeries.QL1115_LABEL_PRINTER
        ? QL1115.fromIndex(index)
        : QL700.UNSUPPORT;
  }
}