UserEnvironment class Null safety

Constructors

UserEnvironment.preSudo({required String pathToHome})
Creates a UserEnvironment from the SUDO env args that describe the pre-sudo user.
UserEnvironment.save()

Properties

gid int
we cache the real uid and gid when we release privileges so we can restore them.
latefinal
hashCode int
The hash code for this object.
read-onlyinherited
pathToHome String
The path to the original privileged users home dir.
latefinal
pathToShell String?
latefinal
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
uid int
latefinal
username String
latefinal

Methods

build() → void
Build the user environment
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
reorder(bool condition(), void one(), void two()) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited