Unnecessary new (#20138)

* enable lint unnecessary_new

* fix tests

* fix tests

* fix tests
This commit is contained in:
Alexandre Ardhuin
2018-09-12 08:29:29 +02:00
committed by GitHub
parent d7a0dcaa4a
commit d927c93310
1285 changed files with 26519 additions and 26519 deletions

View File

@@ -12,7 +12,7 @@ Future<TestStepResult> systemNavigatorPop() {
StringCodec(),
);
final Completer<TestStepResult> completer = new Completer<TestStepResult>();
final Completer<TestStepResult> completer = Completer<TestStepResult>();
channel.setMessageHandler((String message) async {
completer.complete(

View File

@@ -46,15 +46,15 @@ class TestStepResult {
final TestStatus status;
Widget asWidget(BuildContext context) {
return new Column(
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
new Text('Step: $name', style: bold),
new Text(description),
Text('Step: $name', style: bold),
Text(description),
const Text(' '),
new Text(
Text(
status.toString().substring('TestStatus.'.length),
key: new ValueKey<String>(
key: ValueKey<String>(
status == TestStatus.pending ? 'nostatus' : 'status'),
style: bold,
),