Skip to content

[flutter_tools] Use super parameters in more places - #192484

Merged
srawlins merged 9 commits into
flutter:masterfrom
srawlins:super-tools
Sep 23, 2026
Merged

srawlins merged 9 commits into
flutter:masterfrom
srawlins:super-tools

Conversation

@srawlins

@srawlins srawlins commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

This is work towards dart-lang/sdk#59226

The lint rule use_super_parameters has a bug such that it didn't previously report these cases. But they will be reported soon.

Pre-launch Checklist

@srawlins
srawlins requested review from a team as code owners September 9, 2026 14:49
@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Sep 9, 2026
@flutter-dashboard

Copy link
Copy Markdown

It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. If you believe this PR qualifies for a test exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group.

@github-actions github-actions Bot added tool Affects the "flutter" command-line tool. See also t: labels. team-ios Owned by iOS platform team team-macos Owned by the macOS platform team team-windows Owned by the Windows platform team labels Sep 9, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request refactors various command classes in flutter_tools to utilize Dart's super-initializer parameters (super.toolContext), simplifying constructor signatures and removing redundant arguments from super constructor calls. The review feedback suggests further leveraging super parameters for the verboseHelp parameter in BuildIOSSubCommand, BuildMacosCommand, and ChannelCommand to improve code consistency and readability.

srawlins and others added 2 commits September 9, 2026 07:52
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@okorohelijah
okorohelijah self-requested a review September 10, 2026 21:45
okorohelijah
okorohelijah previously approved these changes Sep 14, 2026
@srawlins
srawlins enabled auto-merge September 14, 2026 22:50
@srawlins
srawlins added this pull request to the merge queue Sep 23, 2026
Merged via the queue into flutter:master with commit 6109354 Sep 23, 2026
18 checks passed
@srawlins
srawlins deleted the super-tools branch September 23, 2026 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD team-ios Owned by iOS platform team team-macos Owned by the macOS platform team team-windows Owned by the Windows platform team tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants