Index: lib/src/unmodifiable_wrappers.dart |
diff --git a/lib/src/unmodifiable_wrappers.dart b/lib/src/unmodifiable_wrappers.dart |
index 72b189cf3f8a6484b4b881b254ec18657b7c3292..c681884e47f06960b6b87d283780def96933fe19 100644 |
--- a/lib/src/unmodifiable_wrappers.dart |
+++ b/lib/src/unmodifiable_wrappers.dart |
@@ -11,7 +11,13 @@ |
* The [List] wrapper prevents changes to the length of the wrapped list, |
* but allows changes to the contents. |
*/ |
-part of dart.pkg.collection.wrappers; |
+library collection.unmodifiable_wrappers; |
+ |
+import "dart:collection"; |
+ |
+import '../wrappers.dart'; |
+ |
+export "dart:collection" show UnmodifiableListView, UnmodifiableMapView; |
/** |
* A fixed-length list. |
@@ -193,20 +199,6 @@ abstract class UnmodifiableSetMixin<E> implements Set<E> { |
} |
/** |
- * An unmodifiable map. |
- * |
- * An UnmodifiableMapView contains a [Map] object and ensures |
- * that it does not change. |
- * Methods that would change the map, |
- * such as [addAll] and [remove], throw an [UnsupportedError]. |
- * Permitted operations defer to the wrapped map. |
- */ |
-class UnmodifiableMapView<K, V> extends DelegatingMap<K, V> |
- with UnmodifiableMapMixin<K, V> { |
- UnmodifiableMapView(Map<K, V> baseMap) : super(baseMap); |
-} |
- |
-/** |
* Mixin class that implements a throwing version of all map operations that |
* change the Map. |
*/ |