mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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:
parent
16d800b204
commit
01ac75f5e4
@ -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
|
||||
/// },
|
||||
/// ),
|
||||
/// ],
|
||||
/// ),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user