set method

void set(
  1. T next
)

Replaces the current value and notifies every listener.

Implementation

void set(T next) {
  _value = next;
  notifyListeners();
}