getHomeDirectory function

String? getHomeDirectory()

Implementation

String? getHomeDirectory() {
  if (Platform.isMacOS || Platform.isLinux) {
    return Platform.environment['HOME'];
  } else if (Platform.isWindows) {
    return Platform.environment['USERPROFILE'];
  }
  return null;
}