resolveWindowsPublisherCache method

  1. @override
Future<String> resolveWindowsPublisherCache(
  1. String folderName
)
override

Implementation

@override
Future<String> resolveWindowsPublisherCache(String folderName) async {
  final path = await methodChannel.invokeMethod<String>(
    'resolveWindowsPublisherCache',
    {'folderName': folderName},
  );
  if (path == null || path.isEmpty) {
    throw PlatformException(
      code: 'storage_unavailable',
      message: 'The declared PublisherCacheFolder is unavailable',
    );
  }
  return path;
}