homeDir function

String? homeDir()

Get the user HOME directory if possible.

Implementation

String? homeDir() => Platform.isWindows
    ? Platform.environment['USERPROFILE']
    : Platform.environment['HOME'];