update method

void update(
  1. T value
)

Implementation

void update(T value) {
  this.value = value;
  notifyListeners();
}