set method

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

Sets the value of the Pod to newValue and calls notifyListeners if the value is different from the current value.

No-op on a disposed pod (the value field is not mutated).

Implementation

void set(T newValue, {bool notifyImmediately = true}) {
  _set(newValue, notifyImmediately: notifyImmediately);
}