resetStateProperties method

C resetStateProperties(
  1. List<String> properties
)

Implementation

C resetStateProperties(List<String> properties) {
  differenceState = state.copyWithOmittedProperties(properties);
  state = state.copyWithOmittedProperties(
    properties,
    defaultState: defaultCalculatorState,
  );

  result = null;

  return _checkStateValidity();
}