Prepare more of dev for use_super_parameters (#101073)

This commit is contained in:
Michael Goderbauer
2022-03-30 14:05:05 -07:00
committed by GitHub
parent 75baed585e
commit ca2d60e8e2
109 changed files with 215 additions and 253 deletions

View File

@@ -15,7 +15,7 @@ void topMain() => runApp(const MyApp(Colors.green));
void bottomMain() => runApp(const MyApp(Colors.purple));
class MyApp extends StatelessWidget {
const MyApp(this.color, {Key? key}) : super(key: key);
const MyApp(this.color, {super.key});
final Color color;
@@ -32,7 +32,7 @@ class MyApp extends StatelessWidget {
}
class MyHomePage extends StatefulWidget {
const MyHomePage({Key? key, this.title}) : super(key: key);
const MyHomePage({super.key, this.title});
final String? title;
@override