Skip to content

Conditional member access for map children? #33903

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
lukepighetti opened this issue Jul 18, 2018 · 1 comment
Closed

Conditional member access for map children? #33903

lukepighetti opened this issue Jul 18, 2018 · 1 comment
Labels
closed-duplicate Closed in favor of an existing report

Comments

@lukepighetti
Copy link

lukepighetti commented Jul 18, 2018

Any chance we can add conditional member access for map children?

Example:

Today it works like this

Map coolMap = {
  'foo':'bar'
};

final thing = coolMap['baz']['broke'] // error

Tomorrow it works like this?

Map coolMap = {
  'foo':'bar'
};

final thing = coolMap?.['baz']?.['broke'] // null
@natebosch
Copy link
Member

Closing as a duplicate of #28389

@natebosch natebosch added the closed-duplicate Closed in favor of an existing report label Jul 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-duplicate Closed in favor of an existing report
Projects
None yet
Development

No branches or pull requests

2 participants