getApplicationSupportDirectoryPath static method

Future<String> getApplicationSupportDirectoryPath()

获取应用程序支持目录路径

Implementation

static Future<String> getApplicationSupportDirectoryPath() async {
  if (Platform.isIOS || Platform.isMacOS) {
    final Directory appSupportDir = await getLibraryDirectory();
    return appSupportDir.path;
  } else {
    final Directory appSupportDir = await getApplicationSupportDirectory();
    return appSupportDir.path;
  }
}