For the complete documentation index, see llms.txt. This page is also available as Markdown.

userName

The logged in user's name.

If you are running under sudo then the username will be 'root'.

Possible Values:

  • bsutton

  • andrew

Example:

import "package:system_info2/system_info2.dart";

print("User Name          : ${SysInfo.userName}");

Last updated

Was this helpful?