Final chapter: migrate api doc samples to super-parameters (#104007)
This commit is contained in:
committed by
GitHub
parent
7fdf747723
commit
2cbad4b3ae
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user