homePath property

String get homePath

The user home (HOME, or USERPROFILE on Windows).

Implementation

String get homePath =>
    environmentValue('HOME') ??
    environmentValue('USERPROFILE') ??
    (throw StateError('Missing environment variable HOME or USERPROFILE'));