update<T> method
Set state of creator using an update function. See set. No-op if the state doesn't change.
Implementation
void update<T>(Creator<T> creator, T Function(T) update) {
set<T>(creator, update(_element(creator).state));
}