Result removeEditVariables(List<Variable> variables)

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.

Source

Result removeEditVariables(List<Variable> variables) {
  _SolverBulkUpdate applier = (Variable v) => removeEditVariable(v);
  _SolverBulkUpdate undoer = (Variable v) =>
      addEditVariable(v, _edits[v].constraint.priority);

  return _bulkEdit(variables, applier, undoer);
}