transformHistoryValue method
Only apply the sketch from the undo history, otherwise keep current state
Implementation
@override
@protected
ScribbleState transformHistoryValue(
ScribbleState historyValue,
ScribbleState currentState,
) {
return currentState.copyWith(
sketch: historyValue.sketch,
);
}