Skip to content

Fix a few code style nits according to Effective Dart: #2610

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

Merged
merged 2 commits into from
Apr 8, 2021

Conversation

srawlins
Copy link
Member

@srawlins srawlins commented Apr 8, 2021

Additionally:

  • cleaned up comments to use backticks and references
  • use collection-for when declaring a Map, instead of using MapEntries.

* [DON’T use a leading underscore for identifiers that aren’t private.](https://dart.dev/guides/language/effective-dart/style#dont-use-a-leading-underscore-for-identifiers-that-arent-private)
* [DO follow a consistent rule for `var` and `final` on local variables.](https://dart.dev/guides/language/effective-dart/usage#do-follow-a-consistent-rule-for-var-and-final-on-local-variables)

Additionally:

* cleaned up comments to use backticks and references
* use collection-for when declaring a Map, instead of using MapEntries.
@google-cla google-cla bot added the cla: yes Google CLA check succeeded. label Apr 8, 2021
@srawlins srawlins merged commit d40b877 into dart-lang:master Apr 8, 2021
@srawlins srawlins deleted the edart-nits branch April 8, 2021 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google CLA check succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants