transfer method

Future<PrinterStatus> transfer(
  1. String filepath
)

Transfers a P-touch Template file to the printer. The template file (*.pdz, *.blf) is created by P-touch Transfer Manager, a Windows application. For Bluetooth and USB transfers, use pdz files. For all interface, use blf files.

Implementation

Future<PrinterStatus> transfer(String filepath) async {

  var params = {
    "printerId": mPrinterId,
    "printInfo": mPrinterInfo.toMap(),
    "filePath" : filepath,
  };

  final Map resultMap = await _channel.invokeMethod("transfer", params);
  PrinterStatus status = PrinterStatus.fromMap(resultMap);

  return status;
}