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.

Implementation

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