Final chapter: migrate api doc samples to super-parameters (#104007)

This commit is contained in:
Michael Goderbauer
2022-05-17 15:35:07 -07:00
committed by GitHub
parent 7fdf747723
commit 2cbad4b3ae
352 changed files with 779 additions and 788 deletions

View File

@@ -48,7 +48,7 @@ void main() {
}
class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});
static const String _title = 'Flutter Code Sample';
@@ -94,10 +94,10 @@ class _MyAppState extends State<MyApp> {
class Home extends StatelessWidget {
const Home({
Key? key,
super.key,
required this.isLightTheme,
required this.toggleTheme,
}) : super(key: key);
});
final bool isLightTheme;
final void Function() toggleTheme;