transformHistoryValue method
- @override
- @protected
- ScribbleState historyValue,
- ScribbleState currentState
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,
);
}