Result removeEditVariable(Variable variable)

Attempt to remove the specified edit Variable from the solver.

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 variable was successfully removed from the solver.
  • Result.unknownEditVariable: The edit variable was not present in the solver. There was nothing to remove.

Source

Result removeEditVariable(Variable variable) {
  _EditInfo info = _edits[variable];
  if (info == null)
    return Result.unknownEditVariable;

  assert(removeConstraint(info.constraint) == Result.success);

  _edits.remove(variable);
  return Result.success;
}