Index: pkg/scheduled_test/lib/src/schedule.dart |
diff --git a/pkg/scheduled_test/lib/src/schedule.dart b/pkg/scheduled_test/lib/src/schedule.dart |
index ac601ea984e6bc140bf3571da80ae7544c2b0804..923d261102bfa12d10a678a1aa997326608305b7 100644 |
--- a/pkg/scheduled_test/lib/src/schedule.dart |
+++ b/pkg/scheduled_test/lib/src/schedule.dart |
@@ -471,8 +471,7 @@ class TaskQueue { |
var lines = task.toString().split("\n"); |
var firstLine = task == highlight ? |
"> ${lines.first}" : "* ${lines.first}"; |
- lines = new List.from(lines.skip(1).map((line) => "| $line")); |
- lines.insertRange(0, 1, firstLine); |
+ lines = [firstLine]..addAll(lines.skip(1).map((line) => "| $line")); |
return lines.join("\n"); |
}).join("\n"); |
} |