value property

  1. @override
T get value
override

The current value stored in this notifier.

When the value is replaced with something that is not equal to the old value as evaluated by the equality operator ==, this class notifies its listeners.

Implementation

@override
T get value {
  // Automatically track when value is accessed within an Obx widget
  RxTracking.track(this);
  return super.value;
}
  1. @override
set value (T newValue)
override

Implementation

@override
set value(T newValue) {
  // Let ValueNotifier handle the equality check and notification
  super.value = newValue;
}