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:
@@ -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
|
||||
/// },
|
||||
/// ),
|
||||
/// ],
|
||||
/// ),
|
||||
|
||||
Reference in New Issue
Block a user