diff --git a/CHANGELOG.md b/CHANGELOG.md index 21a20a2..fb9e89d 100644 --- a/CHANGELOG.md +++ b/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. diff --git a/lib/src/observable_list.dart b/lib/src/observable_list.dart index d00f08a..d91bb68 100644 --- a/lib/src/observable_list.dart +++ b/lib/src/observable_list.dart @@ -83,6 +83,7 @@ class ObservableList extends ListBase 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 retype() => cast(); diff --git a/lib/src/observable_map.dart b/lib/src/observable_map.dart index d6165bf..bb1c844 100644 --- a/lib/src/observable_map.dart +++ b/lib/src/observable_map.dart @@ -177,6 +177,7 @@ class ObservableMap extends Observable implements Map { return ObservableMap.castFrom(this); } + @deprecated @override // ignore: override_on_non_overriding_method ObservableMap retype() {