Declare locals as final where not reassigned (dev) (#8574)

This commit is contained in:
Chris Bracken
2017-03-03 18:06:08 -08:00
committed by GitHub
parent 7a52fb6772
commit 6c97dd2c6c
35 changed files with 215 additions and 215 deletions

View File

@@ -13,7 +13,7 @@ void main() {
await tester.pump(); // see https://github.com/flutter/flutter/issues/1865
await tester.pump(); // triggers a frame
Finder navigationMenu = find.byWidgetPredicate((Widget widget) {
final Finder navigationMenu = find.byWidgetPredicate((Widget widget) {
if (widget is Tooltip)
return widget.message == 'Open navigation menu';
return false;