set method

void set(
  1. T val
)

Sets the value to the given val and updates the listeners.

Implementation

void set(T val) {
  value = val;
  _controller.add(value);
}