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

@@ -449,7 +449,7 @@ class ItemGalleryBox extends StatelessWidget {
@override
Widget build(BuildContext context) {
List<String> tabNames = <String>[
final List<String> tabNames = <String>[
'A', 'B', 'C', 'D'
];

View File

@@ -20,9 +20,9 @@ void main() {
});
test('measure', () async {
Timeline timeline = await driver.traceAction(() async {
final Timeline timeline = await driver.traceAction(() async {
// Find the scrollable stock list
SerializableFinder stockList = find.byValueKey('main-scroll');
final SerializableFinder stockList = find.byValueKey('main-scroll');
expect(stockList, isNotNull);
// Scroll down
@@ -38,7 +38,7 @@ void main() {
}
});
TimelineSummary summary = new TimelineSummary.summarize(timeline);
final TimelineSummary summary = new TimelineSummary.summarize(timeline);
summary.writeSummaryToFile('complex_layout_scroll_perf', pretty: true);
summary.writeTimelineToFile('complex_layout_scroll_perf', pretty: true);
});