Callback wasn't clear what the type of the function was (#8712)

Changing to an inline function, making the type more clear.
This commit is contained in:
Seth Ladd 2017-03-10 13:49:47 -08:00 committed by GitHub
parent 16d800b204
commit 01ac75f5e4

View File

@ -686,7 +686,9 @@ class SliverAppBar extends StatelessWidget {
/// new IconButton(
/// icon: new Icon(Icons.shopping_cart),
/// tooltip: 'Open shopping cart',
/// onPressed: _openCart,
/// onPressed: () {
/// // handle the press
/// },
/// ),
/// ],
/// ),