-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(bricks): upgrade cubit to shorthand lambda syntax (#3321)
- Loading branch information
Showing
6 changed files
with
19 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# 0.1.1 | ||
|
||
- refactor: upgrade to shorthand lambda syntax (`mason >= 0.1.0-dev.15`) | ||
|
||
# 0.1.0 | ||
|
||
- feat: initial release with support for basic cubit generation |
7 changes: 0 additions & 7 deletions
7
bricks/cubit/__brick__/{{#snakeCase}}{{name}}{{/snakeCase}}_cubit.dart
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
bricks/cubit/__brick__/{{#snakeCase}}{{name}}{{/snakeCase}}_state.dart
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import 'package:bloc/bloc.dart'; | ||
|
||
part '{{name.snakeCase()}}_state.dart'; | ||
|
||
class {{name.pascalCase()}}Cubit extends Cubit<{{name.pascalCase()}}State> { | ||
{{name.pascalCase()}}Cubit() : super(const {{name.pascalCase()}}State()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
part of '{{name.snakeCase()}}_cubit.dart'; | ||
|
||
class {{name.pascalCase()}}State { | ||
const {{name.pascalCase()}}State(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters