Skip to content
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

Lambda completion on optional parameters not working #40539

Closed
shinayser opened this issue Feb 8, 2020 · 2 comments
Closed

Lambda completion on optional parameters not working #40539

shinayser opened this issue Feb 8, 2020 · 2 comments
Assignees
Labels
analyzer-completion Issues with the analysis server's code completion feature analyzer-completion-correctness area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P3 A lower priority bug or feature request type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@shinayser
Copy link

shinayser commented Feb 8, 2020

As @pq asked on #40202 (comment) I am opening this issue for provide completion for optional lambda parameters

@pq
Copy link
Member

pq commented Feb 8, 2020

Thanks!

@pq pq self-assigned this Feb 8, 2020
@pq pq added analyzer-completion Issues with the analysis server's code completion feature area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. labels Feb 8, 2020
@pq pq removed their assignment Jun 29, 2020
@srawlins srawlins added the P3 A lower priority bug or feature request label Nov 10, 2020
@srawlins srawlins added the type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) label Nov 17, 2021
@scheglov scheglov self-assigned this Mar 13, 2024
@scheglov
Copy link
Contributor

I believe that the progress over years to suggest named arguments, and separately expression / block closure covers this issue.

class MyFuture {
  MyFuture.delayed(Duration d, {int Function()? operation});
}

void f() {
  MyFuture.delayed(const Duration(), ^);
}
image image image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-completion Issues with the analysis server's code completion feature analyzer-completion-correctness area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P3 A lower priority bug or feature request type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
Development

No branches or pull requests

5 participants