unnecessary this in field initializers (#22522)

This commit is contained in:
Alexandre Ardhuin
2018-10-02 17:14:59 +02:00
committed by GitHub
parent 4bd6ad7395
commit 5de96bb734
21 changed files with 38 additions and 38 deletions

View File

@@ -148,8 +148,8 @@ class _TaskRunner {
class TaskResult {
/// Constructs a successful result.
TaskResult.success(this.data, {this.benchmarkScoreKeys = const <String>[]})
: this.succeeded = true,
this.message = 'success' {
: succeeded = true,
message = 'success' {
const JsonEncoder prettyJson = JsonEncoder.withIndent(' ');
if (benchmarkScoreKeys != null) {
for (String key in benchmarkScoreKeys) {
@@ -173,9 +173,9 @@ class TaskResult {
/// Constructs an unsuccessful result.
TaskResult.failure(this.message)
: this.succeeded = false,
this.data = null,
this.benchmarkScoreKeys = const <String>[];
: succeeded = false,
data = null,
benchmarkScoreKeys = const <String>[];
/// Whether the task succeeded.
final bool succeeded;

View File

@@ -446,7 +446,7 @@ class _Transform {
/// Constructs a new _Transform, default arguments create a no-op transform.
_Transform({Matrix3 transformMatrix, this.opacity = 1.0}) :
this.transformMatrix = transformMatrix ?? Matrix3.identity();
transformMatrix = transformMatrix ?? Matrix3.identity();
final Matrix3 transformMatrix;
final double opacity;