Skip to content

Commit

Permalink
Deprecate retype (#71)
Browse files Browse the repository at this point in the history
Update CHANGELOG in preparation to publish
  • Loading branch information
nshahan committed May 25, 2018
1 parent e9369be commit 9d09e57
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,9 @@
## 0.22.1+3

Update implementations of the `cast()` and the deprecated `retype()` methods.
* The `retype()` method on List and Map is deprecated and will be removed.
* The `cast()` method should do what the `retype()` method did.

## 0.22.1+2

* Widen dependency on quiver to include v0.29.
Expand Down
1 change: 1 addition & 0 deletions lib/src/observable_list.dart
Expand Up @@ -83,6 +83,7 @@ class ObservableList<E> extends ListBase<E> with Observable {
/// must be instance of [T] to be valid arguments to the adding function,
/// and they must be instances of [E] as well to be accepted by
/// this list as well.
@deprecated
@override
// ignore: override_on_non_overriding_method
ObservableList<T> retype<T>() => cast<T>();
Expand Down
1 change: 1 addition & 0 deletions lib/src/observable_map.dart
Expand Up @@ -177,6 +177,7 @@ class ObservableMap<K, V> extends Observable implements Map<K, V> {
return ObservableMap.castFrom<K, V, K2, V2>(this);
}

@deprecated
@override
// ignore: override_on_non_overriding_method
ObservableMap<K2, V2> retype<K2, V2>() {
Expand Down

0 comments on commit 9d09e57

Please sign in to comment.