MockSuperuser constructor
MockSuperuser({})
Create mocked properties of SuperuserInterface to emulate superuser status.
whoAmI and groups will be applied the same OSString
matching method by configuring matchingFlag, which has been
instructed in OSString.new already.
Implementation
MockSuperuser({
this.isSuperuser = false,
this.isActivated = false,
String whoAmI = "",
Set<String> groups = const {},
int matchingFlag = OSString.DEFAULT_MATCH,
}) : whoAmI = OSString(whoAmI, matchingFlag),
groups = OSStringsSet.fromStrings(groups, matchingFlag);