Index: pkg/yaml/lib/model.dart |
diff --git a/pkg/yaml/lib/model.dart b/pkg/yaml/lib/model.dart |
index 5c09aa5d962a8e9f48afc240218a17b0b8a24adb..ac237a02051a6d2555e2998b62528cba58cd48c7 100644 |
--- a/pkg/yaml/lib/model.dart |
+++ b/pkg/yaml/lib/model.dart |
@@ -190,8 +190,7 @@ class _ScalarNode extends _Node { |
/// long. |
String zeroPad(String str, int length) { |
assert(length >= str.length); |
- var prefix = []; |
- prefix.insertRange(0, length - str.length, '0'); |
+ var prefix = new List.filled(length - str.length, '0'); |
return '${prefix.join()}$str'; |
} |