Use super parameters in templates (#101157)

This commit is contained in:
Michael Goderbauer
2022-04-14 13:26:38 -07:00
committed by GitHub
parent cc4cc699f8
commit 329ceaef66
6 changed files with 13 additions and 13 deletions

View File

@@ -10,7 +10,7 @@ void main() => runApp(const MyApp());
{{^withPlatformChannelPluginHook}}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});
// This widget is the root of your application.
@override
@@ -34,7 +34,7 @@ class MyApp extends StatelessWidget {
}
class MyHomePage extends StatefulWidget {
const MyHomePage({Key? key, required this.title}) : super(key: key);
const MyHomePage({super.key, required this.title});
// This widget is the home page of your application. It is stateful, meaning
// that it has a State object (defined below) that contains fields that affect
@@ -120,7 +120,7 @@ class _MyHomePageState extends State<MyHomePage> {
{{/withPlatformChannelPluginHook}}
{{#withPlatformChannelPluginHook}}
class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();