getPath static method

Future<String> getPath()

Get the path to store the logs

Implementation

static Future<String> getPath() async {
  if (defaultTargetPlatform == TargetPlatform.windows) {
    final Directory internalCacheDirectory =
        await getApplicationSupportDirectory();
    return join(internalCacheDirectory.path, 'infospect');
  } else {
    final Directory internalCacheDirectory = await getTemporaryDirectory();
    return internalCacheDirectory.path;
  }
}