value property

T value

The current value stored in this property.

A representation of the current value is stored in the restoration data. During state restoration, the property will restore the value to what it was when the restoration data it is getting restored from was collected.

The value can only be accessed after the property has been registered with a RestorationMixin by calling RestorationMixin.registerForRestoration.

Implementation

T get value {
  assert(isRegistered);
  return _value;
}
void value= (T newValue)

Implementation

set value(T newValue) {
  assert(isRegistered);
  if (newValue != _value) {
    final T oldValue = _value;
    _value = newValue;
    didUpdateValue(oldValue);
  }
}