setter method

void setter(
  1. T newValue
)

Updates the notifier with the given value.

Implementation

void setter(T newValue) {
  value = newValue;
}