getTempDirectoryPath function

String? getTempDirectoryPath()

Implementation

String? getTempDirectoryPath() {
  final homeDir = getHomeDirectory();
  if (homeDir != null) {
    if (Platform.isMacOS || Platform.isLinux) {
      String tempPath = '$homeDir/Downloads/mpflutter_temp';
      return tempPath;
    } else if (Platform.isWindows) {
      String tempPath = '$homeDir/mpflutter_temp';
      return tempPath;
    }
  }
  return null;
}