flutter / flutter/devtools

Use dot-shorthand syntax for doubles when possible

Open
#9,328 0 comments 0 reactions 0 assignees View on GitHub
analysis-server-change-needed P3 property editor
Dominant language
Dart
Stars
1.7k
Forks
404
Avg merge
6d 17h
Merged PRs (30d)
18

Description

If a user has a double property that could support dot shorthand syntax but isn't, e.g.:

* `double.infinity` -> `.infinity`
* `double.nan` -> `.nan`

We could display the dot-shorthand version to help users discover this new language feature. This would require the analysis server to send the current Dart version to the Property Editor Client so that the Property Editor Client can determine whether dot-shorthand syntax is supported.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.