flutter / flutter/flutter-intellij
Use super params in macro-generated code
- Dominant language
- Java
- Stars
- 2k
- Forks
- 356
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 27
Description
The `stless` and friends macros should generate code that uses the new super param feature if it is available. Super parameters are available when the lower SDK bound of the package is at least 2.17.0-0.
The `stless` macro should for example generate the following code:
```dart
class Foo extends StatelessWidget {
const Foo({super.key});
@override
Widget build(BuildContext context) {
return Container();
}
}
```
More about super parameters: https://github.com/dart-lang/language/issues/1855
Tracking issue for the flutter framework: https://github.com/flutter/flutter/issues/100575
Same request for Dart Code: https://github.com/Dart-Code/Dart-Code/issues/3899
Contributor guide
Assessment
This issue has not been assessed yet.