**Is your feature request related to a problem? Please describe.** I have the following class in my Flutter project: ```dart class DataRowCubit<T> extends Cubit<List<DataRow>> { DataRowCubit({ required DataRow Function({ required bool selected, required T data, required int index, // ignore: avoid_positional_boolean_parameters, single parameter required void Function(bool?) onSelectionChanged, }) dataRow, void Function({ required bool? selection, required int index, required List<bool> list, })? onSelectionChanged, List<T>? list, }) //... ``` But when I write down the constructor to create a new instance, the suggested fillings for the lambdas are the following:  This creates a minor inconvenience that I then need to write down the `required`s myself in all of the non-null parameters:  **Describe the solution you'd like** I would like for the suggested code to follow the `required` keyword.
Activity
DanTup commentedon Nov 14, 2023
Working on a fix at https://dart-review.googlesource.com/c/sdk/+/336021
required.mp4
[analysis_server] Include 'required' keyword in closure completion text
DanTup commentedon Nov 15, 2023
Fixed by dart-lang/sdk@4dddc98 - will in a future SDK (not Dart-Code) release.