Index: tool/input_sdk/lib/core/list.dart |
diff --git a/tool/input_sdk/lib/core/list.dart b/tool/input_sdk/lib/core/list.dart |
index 3b8930a8dae9c561fc7f353388cf4b31b6bd0813..d89b5db0c5aa71d338baaf9244d0366bcc7360ef 100644 |
--- a/tool/input_sdk/lib/core/list.dart |
+++ b/tool/input_sdk/lib/core/list.dart |
@@ -122,6 +122,17 @@ abstract class List<E> implements Iterable<E> { |
} |
/** |
+ * Creates an unmodifiable list containing all [elements]. |
+ * |
+ * The [Iterator] of [elements] provides the order of the elements. |
+ * |
+ * An unmodifiable list cannot have its length or elements changed. |
+ * If the elements are themselves immutable, then the resulting list |
+ * is also immutable. |
+ */ |
+ external factory List.unmodifiable(Iterable elements); |
+ |
+ /** |
* Returns the object at the given [index] in the list |
* or throws a [RangeError] if [index] is out of bounds. |
*/ |