Index: sdk/lib/_internal/lib/core_patch.dart |
diff --git a/sdk/lib/_internal/lib/core_patch.dart b/sdk/lib/_internal/lib/core_patch.dart |
index b6f538ffec9700b8d3e709384b5d42b256ae2fce..5b1f85fd9bd280f9f4de577cf92c72ce62586ed7 100644 |
--- a/sdk/lib/_internal/lib/core_patch.dart |
+++ b/sdk/lib/_internal/lib/core_patch.dart |
@@ -253,6 +253,16 @@ class List<E> { |
} |
return result; |
} |
+ |
+ @patch |
+ factory List.from(Iterable other, { bool growable: true }) { |
+ List<E> list = new List<E>(); |
+ for (E e in other) { |
+ list.add(e); |
+ } |
+ if (growable) return list; |
+ return makeListFixedLength(list); |
+ } |
} |