update method
T
update(
- T newValue
Implementation
T update(T newValue) {
T updated = onUpdate(value, newValue);
value = newValue;
return updated;
}
T update(T newValue) {
T updated = onUpdate(value, newValue);
value = newValue;
return updated;
}