Prepare examples for use_super_parameters (#100514)

This commit is contained in:
Michael Goderbauer
2022-03-29 12:53:08 -07:00
committed by GitHub
parent 195a1cc413
commit 91bcf4200e
23 changed files with 32 additions and 33 deletions

View File

@@ -12,7 +12,7 @@ void main() {
}
class PlatformView extends StatelessWidget {
const PlatformView({Key? key}) : super(key: key);
const PlatformView({super.key});
@override
Widget build(BuildContext context) {
@@ -27,7 +27,7 @@ class PlatformView extends StatelessWidget {
}
class MyHomePage extends StatefulWidget {
const MyHomePage({Key? key, required this.title}) : super(key: key);
const MyHomePage({super.key, required this.title});
final String title;