Unnecessary new (#20138)
* enable lint unnecessary_new * fix tests * fix tests * fix tests
This commit is contained in:
committed by
GitHub
parent
d7a0dcaa4a
commit
d927c93310
@@ -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(
|
||||
|
||||
@@ -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,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user