loggedInUser property

String? loggedInUser

Returns the username of the logged in user.

Linux: If you are running sudo this will still return the actual username rather than root.

Implementation

String? get loggedInUser;