updateState method
Implementation
void updateState(
SwayzeHeaderState Function(SwayzeHeaderState previousState) stateUpdate,
) {
value = stateUpdate(value);
}
void updateState(
SwayzeHeaderState Function(SwayzeHeaderState previousState) stateUpdate,
) {
value = stateUpdate(value);
}