Skip to content

[flutter_tools] Add use_null_aware_elements lint rule and fix new warnings - #193215

Merged
auto-submit[bot] merged 1 commit into
flutter:masterfrom
AbdeMohlbi:add_use_null_aware_elements
Sep 25, 2026
Merged

auto-submit[bot] merged 1 commit into
flutter:masterfrom
AbdeMohlbi:add_use_null_aware_elements

Conversation

@AbdeMohlbi

@AbdeMohlbi AbdeMohlbi commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

This change adds use_null_aware_elements lint rule and fixes new warnings

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

If this change needs to override an active code freeze, provide a comment explaining why. The code freeze workflow can be overridden by code reviewers. See pinned issues for any active code freezes with guidance.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

@github-actions github-actions Bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Sep 23, 2026
@AbdeMohlbi AbdeMohlbi changed the title Add use_null_aware_elements lint rule [flutter_tools] Add use_null_aware_elements lint rule and fix new warnings Sep 23, 2026
@AbdeMohlbi AbdeMohlbi added the CICD Run CI/CD label Sep 23, 2026
@AbdeMohlbi
AbdeMohlbi marked this pull request as ready for review September 23, 2026 12:52

@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 enables the "use_null_aware_elements" linter rule in analysis_options.yaml and updates map literals in build_info.dart, config.dart, and web_template.dart to use null-aware element syntax instead of conditional if statements. There are no review comments, so no feedback is provided.

@AbdeMohlbi

Copy link
Copy Markdown
Member Author

Code Review

This pull request enables the "use_null_aware_elements" linter rule in analysis_options.yaml and updates map literals in build_info.dart, config.dart, and web_template.dart to use null-aware element syntax instead of conditional if statements. There are no review comments, so no feedback is provided.

jetstream

@bkonyi
bkonyi requested review from bkonyi and srawlins and removed request for srawlins September 24, 2026 20:35
@bkonyi bkonyi added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 24, 2026
@auto-submit
auto-submit Bot added this pull request to the merge queue Sep 25, 2026
Merged via the queue into flutter:master with commit 6d1edf0 Sep 25, 2026
45 checks passed
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD 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