Skip to content

Commit 3cb7ab3

Browse files
committed
Format
1 parent efbb25e commit 3cb7ab3

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

superuser/lib/mock.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
/// values when performing debugs or testing.
33
library 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;

superuser/lib/src/instance.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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].
3939
void bindInstance(SuperuserInterface? suInterface) {

superuser/lib/superuser.dart

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
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.
55
library superuser;
66

77
export '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

1213
import '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;

0 commit comments

Comments
 (0)