File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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+ }
You can’t perform that action at this time.
0 commit comments