userName property

String userName
final

Returns the name of current user.

print(SysInfo.userName);
=> 'Andrew'

Implementation

static final String userName = _getUserName();