@@ -105,11 +105,15 @@ class ChangeNotifier<C extends ChangeRecord> implements Observable<C> {
105
105
}
106
106
}
107
107
108
- /// Implements [notifyPropertyChange] for classes that need support.
108
+ /// Supplies property `changes` and various hooks to implement [Observable] .
109
+ ///
110
+ /// May use `notifyChange` or `notifyPropertyChange` to queue a property change
111
+ /// record; they are asynchronously delivered at the end of the VM turn.
109
112
///
110
- /// Will be folded entirely into [PropertyChangeNotifier] in the future.
111
- @Deprecated ('Exists to make migrations off Observable easier' )
112
- abstract class PropertyChangeMixin implements ChangeNotifier {
113
+ /// [PropertyChangeNotifier] may be extended or used as a delegate. To use as
114
+ /// a mixin, instead use with [PropertyChangeMixin] :
115
+ /// with ChangeNotifier<PropertyChangeRecord>, PropertyChangeMixin
116
+ class PropertyChangeNotifier extends ChangeNotifier <PropertyChangeRecord > {
113
117
@override
114
118
/*=T*/ notifyPropertyChange/*<T>*/ (
115
119
Symbol field,
@@ -131,14 +135,3 @@ abstract class PropertyChangeMixin implements ChangeNotifier {
131
135
return newValue;
132
136
}
133
137
}
134
-
135
- /// Supplies property `changes` and various hooks to implement [Observable] .
136
- ///
137
- /// May use `notifyChange` or `notifyPropertyChange` to queue a property change
138
- /// record; they are asynchronously delivered at the end of the VM turn.
139
- ///
140
- /// [PropertyChangeNotifier] may be extended or used as a delegate. To use as
141
- /// a mixin, instead use with [PropertyChangeMixin] :
142
- /// with ChangeNotifier<PropertyChangeRecord>, PropertyChangeMixin
143
- class PropertyChangeNotifier = ChangeNotifier <PropertyChangeRecord >
144
- with PropertyChangeMixin ;
0 commit comments