Index: pkg/observe/lib/src/observable_list.dart |
diff --git a/pkg/observe/lib/src/observable_list.dart b/pkg/observe/lib/src/observable_list.dart |
index 4a6b56a6ef3513369ea74b540df4ddb54fbe4109..3972fe62fde39e1b8d6f7ccb43438bfbf385e5f9 100644 |
--- a/pkg/observe/lib/src/observable_list.dart |
+++ b/pkg/observe/lib/src/observable_list.dart |
@@ -247,7 +247,11 @@ class ObservableList<E> extends ListBase<E> with ChangeNotifier { |
notifyPropertyChange(#isNotEmpty, oldValue != 0, newValue != 0); |
} |
- void discardListChages() { |
+ /// Deprecated. Name had a typo, use [discardListChanges] instead. |
+ @deprecated |
+ void discardListChages() => discardListChanges(); |
+ |
+ void discardListChanges() { |
// Leave _listRecords set so we don't schedule another delivery. |
if (_listRecords != null) _listRecords = []; |
} |