bluetoothEmvFileUpload method
required Emv file upload when new device connected
Implementation
@override
Future<int> bluetoothEmvFileUpload() async {
String fileName = "emv_param_d135.emv";
ByteData assetFile =
await rootBundle.load('packages/dtb_link/assets/$fileName');
final dir = await getApplicationDocumentsDirectory();
String filePath = '${dir.path}/$fileName';
debugPrint("filePath: $filePath");
final file = File('${dir.path}/$fileName');
await file.writeAsBytes(assetFile.buffer.asInt8List());
return _fileDownload(fileName, filePath);
}