set method

void set(
  1. T newValue, {
  2. bool notify = true,
})

Implementation

void set(T newValue, {bool notify = true}) {
  if (_myValue == newValue) return;
  _myValue = newValue;
  if (notify) notifyListeners();
}