Chromium Code Reviews| Index: lib/src/unmodifiable_wrappers.dart |
| diff --git a/lib/src/unmodifiable_wrappers.dart b/lib/src/unmodifiable_wrappers.dart |
| index 72b189cf3f8a6484b4b881b254ec18657b7c3292..73c8ad6210eb426badbb6090e25958d0b8444595 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 dart.pkg.collection.unmodifiable_wrappers; |
|
Lasse Reichstein Nielsen
2015/08/25 07:43:48
Feel free to change the name to collection.unmodif
nweiz
2015/08/25 19:45:54
Done.
|
| + |
| +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. |
| */ |