downloadBmp method
Downloads a BMP File to the printer.
Implementation
Future<bool> downloadBmp(String filePath) async {
var params = {
"printerId": _printerId,
"printInfo": _printerInfo.toMap(),
"filePath": filePath,
"brotherFileName": ITbCommand.pathToBrotherFileName(filePath)
};
print(
"Downloaded File Name: ${ITbCommand.pathToBrotherFileName(filePath)}");
final bool success =
await _channel.invokeMethod("typeB-downloadBmp", params);
return success;
}