getFreeDiskSpaceForPath static method

Future<double?> getFreeDiskSpaceForPath(
  1. String path
)

Implementation

static Future<double?> getFreeDiskSpaceForPath(String path) async {
  if (!Directory(path).existsSync()) {
    throw Exception("Specified path does not exist");
  }
  final double? freeDiskSpace =
      await _channel.invokeMethod('getFreeDiskSpaceForPath', {"path": path});
  return freeDiskSpace;
}