getPathDocument method Null safety

  1. @override
Future<String> getPathDocument(
  1. {required String folderName}
)
override

take path from folder folderName return path

Implementation

@override
Future<String> getPathDocument({required String folderName}) async {
  try {
    if (Platform.isWindows)
      return await WindowsFun.getPathFolderWindows(folder: folderName);
    else
      return await methodChannel.invokeMethod("getPathDocument");
  } on PlatformException catch (e) {
    throw OpenDocumentException(
        'getPathDocument: ${e.stacktrace.toString()}');
  }
}