Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[app_dart] Migrate to super parameters #2071

Merged
merged 2 commits into from
Aug 25, 2022

Conversation

CaseyHillers
Copy link
Contributor

Clean up with the latest Dart feature. Moves several parameters to named parameters.

@ricardoamador
Copy link
Contributor

Should title be 'Migrate to named parameters'?

@CaseyHillers
Copy link
Contributor Author

Should title be 'Migrate to named parameters'?

See dart-lang/language#1855 (e.g. prefixing with super in the constructor params to remove the super() call)

@@ -32,7 +32,7 @@ import '../service/config.dart';
///]

class GetReleaseBranches extends RequestHandler<Body> {
GetReleaseBranches(Config config, {required this.branchService}) : super(config: config);
GetReleaseBranches({required super.config, required this.branchService});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a fan of this syntax but I'll allow it. :)

Copy link
Contributor

@ricardoamador ricardoamador left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this!

@CaseyHillers CaseyHillers added the autosubmit Merge PR when tree becomes green via auto submit App. label Aug 25, 2022
@auto-submit auto-submit bot merged commit 5115b2c into flutter:main Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants