Prefer const constructors (#11853)

* upgrade to linter-0.1.35

* re-enable lint prefer_const_constructors

* address review comments
This commit is contained in:
Alexandre Ardhuin
2017-08-31 08:55:21 +02:00
committed by GitHub
parent f0bf7b5c8c
commit bb4f4070f9
25 changed files with 172 additions and 158 deletions

View File

@@ -16,7 +16,7 @@ Future<TestStepResult> systemNavigatorPop() {
channel.setMessageHandler((String message) async {
completer.complete(
new TestStepResult('System navigation pop', '', TestStatus.ok));
const TestStepResult('System navigation pop', '', TestStatus.ok));
return '';
});
SystemNavigator.pop();