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