File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed
Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 22/// values when performing debugs or testing.
33library mock;
44
5- import 'package:superuser_interfaces/superuser_interfaces.dart' show SuperuserInterface;
5+ import 'package:superuser_interfaces/superuser_interfaces.dart'
6+ show SuperuserInterface;
67
7- export 'package:superuser_interfaces/superuser_interfaces.dart' show MockSuperuser;
8+ export 'package:superuser_interfaces/superuser_interfaces.dart'
9+ show MockSuperuser;
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ abstract final class SuperuserInstance {
3333///
3434/// If [suInterface] is `null` , it binds platform specified
3535/// [SuperuserInterface] automatically.
36- ///
36+ ///
3737/// When this invoked in neither Windows, macOS or Linux platform,
3838/// it throws [UnsupportedError] .
3939void bindInstance (SuperuserInterface ? suInterface) {
Original file line number Diff line number Diff line change 11/// Fundamental library for fetching superuser status.
2- ///
2+ ///
33/// It only offers [Superuser] class to access superuser conditions
44/// as well as username who run current Flutter program.
55library superuser;
66
77export 'package:superuser_interfaces/superuser_interfaces.dart'
88 show SuperuserInterface;
99
10- import 'package:superuser_interfaces/superuser_interfaces.dart' show MockSuperuser;
10+ import 'package:superuser_interfaces/superuser_interfaces.dart'
11+ show MockSuperuser;
1112
1213import 'src/instance.dart' ;
1314
1415/// A wrapper class that extract status of superuser as well as username.
15- ///
16+ ///
1617/// By default, [Superuser] will load instance for specific platform automatically.
1718/// If mock data is required, please attach [MockSuperuser] into [bindInstance]
1819/// before calling any getters in [Superuser] .
@@ -24,11 +25,11 @@ abstract final class Superuser {
2425 static bool get isSuperuser => SuperuserInstance .instance.isSuperuser;
2526
2627 /// Determine this program is running with superuser role.
27- ///
28+ ///
2829 /// If this getter called in UNIX platforms (macOS or Linux),
2930 /// it is an alias getter of [isSuperuser] since `root` is one and only
3031 /// user can be represented as superuser.
31- ///
32+ ///
3233 /// For Windows platform, it consider this process has been elevated
3334 /// or not.
3435 static bool get isActivated => SuperuserInstance .instance.isActivated;
You can’t perform that action at this time.
0 commit comments