getLogFilePath static method

Future<String> getLogFilePath()

Implementation

static Future<String> getLogFilePath() async {
  PackageInfo packageInfo = await PackageInfo.fromPlatform();
  final Directory? directory = Platform.isAndroid
      ? await getExternalStorageDirectory()
      : await getApplicationSupportDirectory();
  return '${directory?.path}/${packageInfo.appName}.txt';
}