Platform specified SuperuserInterface to retrive properties from plugins.
This cannot be used in tesing due to unpredictable expectation of properties. Therefore, MockSuperuser must be used to ensure all properties are controllable that all test results should be predictable.
- Implemented types
Constructors
- SuperuserPlatform(DynamicLibrary nativeLibrary())
- Create SuperuserPlatform for targeted platform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isActivated → bool
-
Determine this program is executed with superuser right.
no setterinherited
- isClosed → bool
-
Determine it called close already that it no longer
returns properties from native library.
no setter
- isSuperuser → bool
-
Determine current user has superuser role.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- whoAmI → String
-
Retrive name of user, who run this program.
no setterinherited
Methods
-
close(
) → void - Terminate and release resources of native libary.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onGettingProperties<
T> (T handler(DynamicLibrary)) → T -
Middleman of retrive properties from
handler
and prevent it when isClosed, which throw StateError instead. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited