Arrow syntax for getters#156483
Merged
auto-submit[bot] merged 3 commits intoflutter:masterfrom Oct 17, 2024
Merged
Conversation
andrewkolos
reviewed
Oct 10, 2024
Piinks
reviewed
Oct 15, 2024
dev/integration_tests/new_gallery/lib/demos/material/picker_demo.dart
Outdated
Show resolved
Hide resolved
examples/api/lib/material/chip/deletable_chip_attributes.on_deleted.0.dart
Outdated
Show resolved
Hide resolved
| return false; | ||
| } | ||
| } | ||
| bool get _isOnDesktopAndWeb => kIsWeb || switch (defaultTargetPlatform) { |
Contributor
There was a problem hiding this comment.
This looks incorrect based on the name.. should this be true only iff it is desktop && web?
Contributor
There was a problem hiding this comment.
To be clear, I am wondering if the original logic was incorrect to begin with.
Contributor
Author
There was a problem hiding this comment.
Absolutely: either the logic should be changed to use && or the getter should be renamed to _isOnDesktopOrWeb.
I could change it now, though perhaps that's outside the scope of this PR.
Contributor
There was a problem hiding this comment.
Yeah definitely something to follow up on separately.
packages/flutter_tools/lib/src/build_system/targets/deferred_components.dart
Outdated
Show resolved
Hide resolved
Contributor
|
Rebasing should fix the failing check. |
7744e74 to
d16ee4a
Compare
This comment was marked as resolved.
This comment was marked as resolved.
Contributor
|
Yes, please! More of this! |
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Feb 12, 2025
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Feb 13, 2025
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Feb 13, 2025
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Mar 6, 2025
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Mar 7, 2025
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This egotistical PR aims to draw attention to a style guideline that I changed:
There was an opportunity for valuable discussion in #154753 about how this structure affects readability, but I shut it down pretty quick since there was a lot of other stuff going on there.
Interested to hear thoughts from @Piinks and others.