-
Notifications
You must be signed in to change notification settings - Fork 709
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
Add wildcard variables #6295
base: main
Are you sure you want to change the base?
Add wildcard variables #6295
Conversation
Visit the preview URL for this PR (updated for commit 9f1d115): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thank you for writing this up.
} | ||
``` | ||
|
||
* For loop varibale declartaion. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Typo in "variable declaration".
@@ -291,6 +291,60 @@ For more information on using `const` to create constant values, see | |||
[Lists][], [Maps][], and [Classes][]. | |||
|
|||
|
|||
## Wildcard variables |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not even fully sure what we do or don't put in docs, so excuse me if this is a dumb question haha, but how do we expose related lints to these features?
For example, Phil recently submitted the unnecessary_underscores
lint that turns __
into _
(wildcard variable) and it would be great for people to use it.
Do you expose it in other ways (that aren't in this documentation)?
Page staged: https://dart-dev--pr6295-wildcards-g5s9r6dj.web.app/language/variables#wildcard-variables
Fixes #5833