path static method

Future<String> path({
  1. String? fileName,
})

Get path of BleServer from library assets, use this class in Flutter projects only, this class is not supported in pure Dart projects. use fileName to avoid conflicts of using same file in different projects

Implementation

static Future<String> path({String? fileName}) async {
  String bleServerExe = "packages/win_ble/assets/BLEServer.exe";
  File file = await _getFilePath(bleServerExe, fileName);
  return file.path;
}