sendDatabase method
Send the database data described in .csv format. In addition, Updates the database for printers that have templates and databases created and linked by P-touch Editor.
Implementation
//
//.csv data format restrictions :
//
//the delimiter is ,(connma) only
//Alphanumeric & symbol in ASCII only
//
// This method is supported by the following printers.
//
//PT-E550W
Future<PrinterStatus> sendDatabase(String filepath) async {
var params = {
"printerId": mPrinterId,
"printInfo": mPrinterInfo.toMap(),
"filePath" : filepath,
};
final Map resultMap = await _channel.invokeMethod("sendDatabase", params);
PrinterStatus status = PrinterStatus.fromMap(resultMap);
return status;
}