Index: lib/observe/set.dart |
diff --git a/lib/observe/set.dart b/lib/observe/set.dart |
index 1618aed4a2dcb20cb3901a65102744f26b831761..b1be62fb3163102765307502bcc0b09d0987b340 100644 |
--- a/lib/observe/set.dart |
+++ b/lib/observe/set.dart |
@@ -53,13 +53,15 @@ class ObservableSet<E> extends IterableWorkaround with Observable |
* Adds [value] into the set. The method has no effect if |
* [value] was already in the set. |
*/ |
- void add(E value) { |
+ bool add(E value) { |
int len = _map.length; |
_map[value] = const Object(); |
if (len != _map.length) { |
notifyChange(this, ChangeRecord.FIELD, 'length', len, _map.length); |
notifyChange(this, ChangeRecord.INSERT, value, null, value); |
+ return true; |
} |
+ return false; |
} |
/** |
@@ -110,6 +112,8 @@ class ObservableSet<E> extends IterableWorkaround with Observable |
*/ |
void addAll(Iterable<E> collection) => collection.forEach(add); |
+ E lookup(Object object) { throw new UnimplementedError(); } |
+ |
/** |
* Removes all the elements of the given collection from the set. |
*/ |