getPathDocument method

  1. @override
Future<String> getPathDocument()
override

Return path folder

Implementation

@override
Future<String> getPathDocument() async {
  try {
    String path = await methodChannel.invokeMethod("getPathDocument");

    return Platform.isWindows ? path.replaceAll("/", "\\") : path;
  } on PlatformException catch (e) {
    throw OpenDocumentException(
        'getPathDocument: ${e.stacktrace.toString()}');
  }
}