fix analyzer warning: use const where possible (#9320)
This commit is contained in:
@@ -378,7 +378,7 @@ class _AppBarState extends State<AppBar> {
|
||||
if (leading == null) {
|
||||
if (_hasDrawer) {
|
||||
leading = new IconButton(
|
||||
icon: new Icon(Icons.menu),
|
||||
icon: const Icon(Icons.menu),
|
||||
onPressed: _handleDrawerButton,
|
||||
tooltip: 'Open navigation menu' // TODO(ianh): Figure out how to localize this string
|
||||
);
|
||||
|
||||
@@ -294,7 +294,7 @@ class VersionCheckStamp {
|
||||
}
|
||||
|
||||
// Stamp is missing or is malformed.
|
||||
return new VersionCheckStamp();
|
||||
return const VersionCheckStamp();
|
||||
}
|
||||
|
||||
static VersionCheckStamp fromJson(Map<String, String> json) {
|
||||
|
||||
Reference in New Issue
Block a user