Skip to content

Commit cf7a1dc

Browse files
committed
Formatting
1 parent bd322eb commit cf7a1dc

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/commands/create_command.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ Future<void> createCommand(ArgResults command) async {
2424
'Choose a name for your project: ',
2525
desc: 'Note: this must be a valid dart identifier (no dashes). '
2626
'For example: my_game',
27-
validate: (it) => switch(it) {
27+
validate: (it) => switch (it) {
2828
_ when it.isEmpty => 'Name cannot be empty',
2929
_ when it.contains('-') => 'Name cannot contain dashes',
30-
_ when it == 'test' => 'Name cannot be "test" as it conflicts with the Dart package',
30+
_ when it == 'test' => 'Name cannot be "test", '
31+
'as it conflicts with the Dart package',
3132
_ => null,
3233
},
3334
);
@@ -40,7 +41,7 @@ Future<void> createCommand(ArgResults command) async {
4041
desc: 'Note: this is a dot separated list of "packages", '
4142
'normally in reverse domain notation. '
4243
'For example: org.flame_engine.games',
43-
validate: (it) => switch(it) {
44+
validate: (it) => switch (it) {
4445
_ when it.isEmpty => 'Org cannot be empty',
4546
_ when it.contains('-') => 'Org cannot contain dashes',
4647
_ => null,

lib/commands/version_command.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ Future<void> versionCommand() async {
88
await runExecutableArguments('dart', ['--version'], verbose: true);
99
print('');
1010
await runExecutableArguments('flutter', ['--version'], verbose: true);
11-
}
11+
}

0 commit comments

Comments
 (0)