value property

T get value

Returns the current value of the state.

Implementation

T get value => _value;
set value (T newValue)

Updates the value and notifies listeners if the value is different.

Implementation

set value(T newValue) {
  if (_value != newValue) {
    _value = newValue;
    notifyListeners();
  }
}