userHomePath top-level property

String get userHomePath

Return the user home path.

Usually read from the HOME environment variable or USERPROFILE on Windows.

Implementation

String get userHomePath => _userHomePath ??=
    platformEnvironment[userHomePathEnvKey] ??
    platformEnvironment['HOME'] ??
    platformEnvironment['USERPROFILE'] ??
    '~';