removeEditVariables method
Attempt the remove the list of edit Variable from the solver. Either all the specified edit variables are removed or none.
Check the Result returned to make sure the operation succeeded. Any
errors will be reported via the message
property on the Result.
Possible Results:
- Result.success: The edit variables were successfully removed from the Solver.
- Result.unknownEditVariable: One of more edit variables were not already present in the solver.
Implementation
Result removeEditVariables(List<Variable> variables) {
Result applier(v) => removeEditVariable(v);
Result undoer(v) => addEditVariable(v, _edits[v]!.constraint.priority);
return _bulkEdit(variables, applier, undoer);
}