getPathDocument method Null safety
- {required String folderName}
take path from folder folderName
return path
Implementation
static Future<String> getPathDocument({required String folderName}) async {
try {
if (Platform.isWindows)
return await getPathFolderWindows(folder: folderName);
return await _channel.invokeMethod('getPathDocument', folderName);
} on PlatformException catch (e) {
throw OpenDocumentException('getPathDocument: ${e.stacktrace.toString()}');
}
}