setPrinterInfo method

Future<bool> setPrinterInfo(
  1. PrinterInfo printerInfo
)

Set PrinterInfo object to specify the printer and print settings.

Implementation

Future<bool> setPrinterInfo(PrinterInfo printerInfo) async {
  mPrinterInfo = printerInfo;
  mPrinterInfo._labelName = mPrinterInfo.printerModel.getLabelName(mPrinterInfo.labelNameIndex);
  return true;
}