re-enable lint unnecessary_const (#19592)

* re-enable lint unnecessary_const

* remove trailling whitespaces

* remove unnecessary const (after merge)
This commit is contained in:
Alexandre Ardhuin
2018-07-23 08:31:48 +02:00
committed by GitHub
parent 1cb2677234
commit 27018359d2
560 changed files with 40983 additions and 40982 deletions

View File

@@ -7,9 +7,9 @@ import 'package:flutter/services.dart';
import 'test_step.dart';
Future<TestStepResult> systemNavigatorPop() {
const BasicMessageChannel<String> channel = const BasicMessageChannel<String>(
const BasicMessageChannel<String> channel = BasicMessageChannel<String>(
'navigation-test',
const StringCodec(),
StringCodec(),
);
final Completer<TestStepResult> completer = new Completer<TestStepResult>();

View File

@@ -13,8 +13,8 @@ typedef Future<TestStepResult> TestStep();
const String nothing = '-';
class TestStepResult {
static const TextStyle bold = const TextStyle(fontWeight: FontWeight.bold);
static const TestStepResult complete = const TestStepResult(
static const TextStyle bold = TextStyle(fontWeight: FontWeight.bold);
static const TestStepResult complete = TestStepResult(
'Test complete',
nothing,
TestStatus.complete,