Update docs to reflect Null Safety (#78143)

This commit is contained in:
Benjamin Swerdlow
2021-03-17 14:36:07 -07:00
committed by GitHub
parent e7ee0dd424
commit b35fbfec1d

View File

@@ -768,8 +768,8 @@ class Image extends StatefulWidget {
/// ),
/// child: Image.network(
/// 'https://flutter.github.io/assets-for-api-docs/assets/widgets/puffin.jpg',
/// frameBuilder: (BuildContext context, Widget child, int? frame, bool? wasSynchronouslyLoaded) {
/// if (wasSynchronouslyLoaded ?? false) {
/// frameBuilder: (BuildContext context, Widget child, int? frame, bool wasSynchronouslyLoaded) {
/// if (wasSynchronouslyLoaded) {
/// return child;
/// }
/// return AnimatedOpacity(