Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Analyzer: auto-complete to offer constructions, literals and anonymous closures #31885
Something like this https://dart-review.googlesource.com/c/sdk/+/21880 for functions that take a WidgetBuilder or a IndexedWidgetBuilder which are common in flutter
Server doesn't currently propose closures when completing a function-valued argument, but it could. It could also be made to propose list and map literals when appropriate. I think both are worth considering as general improvements (rather than one-off fixes).