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

@@ -7,7 +7,7 @@
import 'package:flutter/material.dart';
class ShowSharedValue extends StatelessWidget {
const ShowSharedValue({ Key? key, required this.appDataKey }) : super(key: key);
const ShowSharedValue({ super.key, required this.appDataKey });
final String appDataKey;
@@ -25,7 +25,7 @@ class ShowSharedValue extends StatelessWidget {
// to be rebuilt. In this case that's the ShowSharedValue widget that's
// displaying the value of a key whose value has been updated.
class Home extends StatefulWidget {
const Home({ Key? key }) : super(key: key);
const Home({ super.key });
@override
State<Home> createState() => _HomeState();

View File

@@ -34,7 +34,7 @@ class SharedObject {
// An example of a widget which depends on the SharedObject's value,
// which might be provided - along with SharedObject - in a Dart package.
class CustomWidget extends StatelessWidget {
const CustomWidget({ Key? key }) : super(key: key);
const CustomWidget({ super.key });
@override
Widget build(BuildContext context) {
@@ -49,7 +49,7 @@ class CustomWidget extends StatelessWidget {
}
class Home extends StatelessWidget {
const Home({ Key? key }) : super(key: key);
const Home({ super.key });
@override
Widget build(BuildContext context) {