File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
packages/flutter/lib/src/foundation Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -248,14 +248,18 @@ class _MergingListenable extends Listenable {
248
248
249
249
/// A [ChangeNotifier] that holds a single value.
250
250
///
251
- /// When [value] is replaced, this class notifies its listeners.
251
+ /// When [value] is replaced with something that is not equal to the old
252
+ /// value as evaluated by the equality operator ==, this class notifies its
253
+ /// listeners.
252
254
class ValueNotifier <T > extends ChangeNotifier implements ValueListenable <T > {
253
255
/// Creates a [ChangeNotifier] that wraps this value.
254
256
ValueNotifier (this ._value);
255
257
256
258
/// The current value stored in this notifier.
257
259
///
258
- /// When the value is replaced, this class notifies its listeners.
260
+ /// When the value is replaced with something that is not equal to the old
261
+ /// value as evaluated by the equality operator ==, this class notifies its
262
+ /// listeners.
259
263
@override
260
264
T get value => _value;
261
265
T _value;
You can’t perform that action at this time.
0 commit comments