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

Remove local definition of mapIndexed and forEachIndexed in example #452

Merged
merged 1 commit into from
Sep 4, 2023

Conversation

ebraminio
Copy link
Contributor

@ebraminio ebraminio commented Aug 18, 2023

The story about this change starts in dart-archive/collection#305 that I wanted to add indexed variant of none/every/any but instead learnt about .indexed and the fact it's possibly (and maybe not) going to be deprecated .thingsIndexed in favor of .indexed. dart-archive/collection#305 (comment) so I went ahead removing .thingsIndexed from my codebase and in the process even found a compiler bug! dart-lang/sdk#53268

While searching for .thingsIndexed in my codebase and using .indexed. instead (which was a good thing as I could use list comprehension much better), I've learnt the only place IntelliJ's IDE's search engine is finding instances of .mapIndexed and .forEachIndexed is in examples of dynamic color library which my app uses, interestingly I had two contributions to the library also when it wasn't merged to this package. Now I wonder while you aren't even using collections's mapIndexed and forEachIndexed, is it possible to remove the uses in the dynamic color's example and just use the more recommended way so my IntelliJ's search result of my project can reach to zero.

Thanks!

@ebraminio ebraminio requested a review from a team as a code owner August 18, 2023 18:06
@ebraminio ebraminio requested review from guidezpl and removed request for a team August 18, 2023 18:06
@@ -6,7 +6,7 @@ description: Demonstrates how to use the dynamic_color package.
publish_to: "none" # Remove this line if you wish to publish to pub.dev

environment:
sdk: ">=2.17.0-0 <4.0.0"
sdk: ">=3.0.0 <4.0.0"
Copy link
Contributor Author

@ebraminio ebraminio Aug 18, 2023

Choose a reason for hiding this comment

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

I had to do this in order to have access to record destructing syntax.

@guidezpl
Copy link
Collaborator

guidezpl commented Sep 4, 2023

Thanks!

@guidezpl guidezpl merged commit ed2b72a into material-foundation:main Sep 4, 2023
8 checks passed
@ebraminio ebraminio deleted the indexed branch September 4, 2023 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants