Skip to content

dart syntax suggestion #2153

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

Closed
r-mzy47 opened this issue Mar 10, 2022 · 1 comment
Closed

dart syntax suggestion #2153

r-mzy47 opened this issue Mar 10, 2022 · 1 comment
Labels
feature Proposed language feature that solves one or more problems state-duplicate This issue or pull request already exists

Comments

@r-mzy47
Copy link

r-mzy47 commented Mar 10, 2022

In dart language, this pattern is very familiar to all of us. for example in the flutter:

Widget(child: child != null ? SomeOderWidget(child: child) : null);

It appears mostly on every file and adds boilerplate to codes and reduces readability.
Is it possible to add some notation like !! to produce the same behaviour? something like:

Widget(child: SomeOderWidget(child: !!child));

Thanks in advance

@r-mzy47 r-mzy47 added the feature Proposed language feature that solves one or more problems label Mar 10, 2022
@lrhn
Copy link
Member

lrhn commented Mar 10, 2022

This suggestion is very similar to #361, so I'll consider it a duplicate of that discussion.

@lrhn lrhn closed this as completed Mar 10, 2022
@lrhn lrhn added the state-duplicate This issue or pull request already exists label Mar 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Proposed language feature that solves one or more problems state-duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants